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
@@ -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.