Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Issue 2986373002: [tq] Enable task deletion. (Closed)

Created:
3 years, 4 months ago by dnj
Modified:
3 years, 4 months ago
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

[tq] Enable task deletion. Enable named task deletion. This generalizes the task queue batching function. Add the concept of a name suffix to the task. This allows the user to supply information without discarding sharding utility. BUG=chromium:751925 TEST=unit Review-Url: https://codereview.chromium.org/2986373002 Committed: https://github.com/luci/luci-go/commit/da9d004ddcf295086e66df450f6779839259be9c

Patch Set 1 #

Patch Set 2 : fix/better comments, more efficient error handling #

Patch Set 3 : suffix to prefix, is more useful for searching #

Patch Set 4 : reorder fields #

Total comments: 9

Patch Set 5 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -55 lines) Patch
M appengine/tq/tq.go View 1 2 3 4 7 chunks +151 lines, -46 lines 0 comments Download
M appengine/tq/tq_test.go View 1 2 3 4 6 chunks +47 lines, -9 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (5 generated)
dnj
PTAL. This is needed by LogDog, and also a pretty nice addition.
3 years, 4 months ago (2017-08-03 17:45:07 UTC) #2
dnj
reorder fields
3 years, 4 months ago (2017-08-03 18:36:43 UTC) #3
Vadim Sh.
lgtm https://codereview.chromium.org/2986373002/diff/60001/appengine/tq/tq.go File appengine/tq/tq.go (right): https://codereview.chromium.org/2986373002/diff/60001/appengine/tq/tq.go#newcode134 appengine/tq/tq.go:134: if task.Payload != nil { tasks without payload ...
3 years, 4 months ago (2017-08-03 20:12:41 UTC) #4
dnj
https://codereview.chromium.org/2986373002/diff/60001/appengine/tq/tq.go File appengine/tq/tq.go (right): https://codereview.chromium.org/2986373002/diff/60001/appengine/tq/tq.go#newcode134 appengine/tq/tq.go:134: if task.Payload != nil { On 2017/08/03 20:12:41, Vadim ...
3 years, 4 months ago (2017-08-03 20:56:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2986373002/80001
3 years, 4 months ago (2017-08-03 20:57:04 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://github.com/luci/luci-go/commit/da9d004ddcf295086e66df450f6779839259be9c
3 years, 4 months ago (2017-08-03 21:03:21 UTC) #11
Vadim Sh.
3 years, 4 months ago (2017-08-03 21:04:05 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/2986373002/diff/60001/appengine/tq/tq.go
File appengine/tq/tq.go (right):

https://codereview.chromium.org/2986373002/diff/60001/appengine/tq/tq.go#newc...
appengine/tq/tq.go:208: // containing only the non-nil errors. This simplifies
user expectations.
On 2017/08/03 20:56:27, dnj wrote:
> On 2017/08/03 20:12:41, Vadim Sh. wrote:
> > I did it this way because I had never seen we actually deconstruct
MultiErrors
> > into per-component ones. And keeping order of errors when doing parallel ops
> is
> > a chore.
> 
> I think it's fine. If a user needs something more, can talk then. Did you want
> me to update the comment or anything, or were you just offering some insight?
:)

I'm just explaining why the code wasn't rigorous here initially.

Powered by Google App Engine
This is Rietveld 408576698