Chromium Code Reviews
Descriptionscheduler: 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 #
Messages
Total messages: 12 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||