Set Ray task name to Dask key for Dask tasks. (#10547)

This commit is contained in:
Clark Zinzow
2020-09-03 16:37:55 -06:00
committed by GitHub
parent c54853d45b
commit 7068c63dd8
+2 -1
View File
@@ -196,7 +196,8 @@ def _rayify_task(task, key, deps):
# Ray properly tracks the object dependencies between Ray tasks.
object_refs, repack = unpack_object_refs(args, deps)
# Submit the task using a wrapper function.
return dask_task_wrapper.remote(func, repack, *object_refs)
return dask_task_wrapper.options(name=f"dask:{key!s}").remote(
func, repack, *object_refs)
elif not ishashable(task):
return task
elif task in deps: