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

Issue 2967373004: scheduler: expose paused property of a Job. (Closed)

Created:
3 years, 5 months ago by tandrii(chromium)
Modified:
3 years, 5 months ago
Reviewers:
Vadim Sh.
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

scheduler: expose paused property of a Job. Previously, I expected that whether Job is paused can be detected from it's "current state" string. However, I just burned 1 hour trying to understand why after calling PauseJob job's state was still running. The answer is obvious -> latest invocation was scheduled before my call PauseJob, and hence I just had to wait. I think having explicit paused field is actually a better idea, even though it has a downside of confusing too if state="running" and paused=true. R=vadimsh@chromium.org Bug: 712427 Review-Url: https://codereview.chromium.org/2967373004 Committed: https://github.com/luci/luci-go/commit/e39d552a742c975af28cc5a4b99dbabce6a6ef1d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -363 lines) Patch
M scheduler/api/scheduler/v1/pb.discovery.go View 1 chunk +325 lines, -322 lines 0 comments Download
M scheduler/api/scheduler/v1/scheduler.proto View 1 chunk +1 line, -0 lines 0 comments Download
M scheduler/api/scheduler/v1/scheduler.pb.go View 3 chunks +49 lines, -41 lines 0 comments Download
M scheduler/appengine/apiservers/scheduler.go View 1 chunk +1 line, -0 lines 0 comments Download
M scheduler/appengine/apiservers/scheduler_test.go View 2 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
tandrii(chromium)
3 years, 5 months ago (2017-07-06 19:59:00 UTC) #1
Vadim Sh.
lgtm
3 years, 5 months ago (2017-07-06 21:28:59 UTC) #6
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/2967373004/1
3 years, 5 months ago (2017-07-07 09:24:28 UTC) #8
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 09:29:33 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://github.com/luci/luci-go/commit/e39d552a742c975af28cc5a4b99dbabce6a6ef1d

Powered by Google App Engine
This is Rietveld 408576698