mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 01:46:10 +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
@@ -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",
|
||||
|
||||
@@ -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