mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 21:49:04 +08:00
Rename get_task -> worker_idle in timeline. (#3179)
* Rename get_task -> worker_idle in timeline. * Fix test.
This commit is contained in:
committed by
Philipp Moritz
parent
2bef9844bf
commit
5822aa2388
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user