Optimize python task execution (#6024)

This commit is contained in:
Philipp Moritz
2019-10-27 00:43:34 -07:00
committed by GitHub
parent e706cb63cc
commit 80c01617a3
7 changed files with 60 additions and 40 deletions
+2 -1
View File
@@ -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)