mirror of
https://github.com/wassname/ray.git
synced 2026-07-17 11:32:33 +08:00
Optimize python task execution (#6024)
This commit is contained in:
@@ -51,4 +51,5 @@ def profile(event_type, extra_data=None):
|
||||
worker = ray.worker.global_worker
|
||||
if worker.mode == ray.worker.LOCAL_MODE:
|
||||
return NULL_LOG_SPAN
|
||||
return worker.core_worker.profile_event(event_type, extra_data)
|
||||
return worker.core_worker.profile_event(
|
||||
event_type.encode("ascii"), extra_data)
|
||||
|
||||
Reference in New Issue
Block a user