Descriptioncc: Implement states for Task for stricter control.
Implement states for task which gives stricter control for managing
states of a task in single variable vs. multiple variables. The states
are as given below.
NEW, SCHEDULED, RUNNING, FINISHED, CANCELED
As TaskGraphWorkQueue manages life cycle of task, this patch also moves
state management to TaskGraphWorkQueue from all TaskGraphRunners, i.e.
WillRun() and DidRun() are moved to places where |work_queue_| inserts
task in |running_tasks| and |completed_tasks_| respectively. This
also ensures that task if gets scheduled must end in either FINISHED or
CANCELED state and will help catch any bugs which go out of expected
behavior for task state.
BUG=599863
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/d67b4b01e6b969df93348eaff249f1d190a72afd
Cr-Commit-Position: refs/heads/master@{#389538}
Patch Set 1 : wip #Patch Set 2 : wip #Patch Set 3 : fixed unit/perf tests #Patch Set 4 : nits #
Total comments: 6
Patch Set 5 : feedback #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 33 (14 generated)
|