Rename get_task -> worker_idle in timeline. (#3179)

* Rename get_task -> worker_idle in timeline.

* Fix test.
This commit is contained in:
Robert Nishihara
2018-11-02 12:08:46 -07:00
committed by Philipp Moritz
parent 2bef9844bf
commit 5822aa2388
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -625,7 +625,7 @@ class GlobalState(object):
# https://github.com/catapult-project/catapult/blob/master/tracing/tracing/base/color_scheme.html. # noqa: E501
default_color_mapping = defaultdict(
lambda: "generic_work", {
"get_task": "cq_build_abandoned",
"worker_idle": "cq_build_abandoned",
"task": "rail_response",
"task:deserialize_arguments": "rail_load",
"task:execute": "rail_animation",
+1 -1
View File
@@ -918,7 +918,7 @@ class Worker(object):
Returns:
A task from the local scheduler.
"""
with profiling.profile("get_task", worker=self):
with profiling.profile("worker_idle", worker=self):
task = self.local_scheduler_client.get_task()
# Automatically restrict the GPUs available to this task.