mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 13:37:39 +08:00
Deprecate 'driver_mode' argument. (#2758)
* Deprecate 'driver_mode' argument. * Fix * Fix
This commit is contained in:
committed by
Philipp Moritz
parent
de047daea7
commit
b7722897b4
@@ -90,7 +90,7 @@ class RemoteFunction(object):
|
||||
|
||||
# # Export the function.
|
||||
worker = ray.worker.get_global_worker()
|
||||
if worker.mode in [ray.worker.SCRIPT_MODE, ray.worker.SILENT_MODE]:
|
||||
if worker.mode == ray.worker.SCRIPT_MODE:
|
||||
self._export()
|
||||
elif worker.mode is None:
|
||||
worker.cached_remote_functions_and_actors.append(
|
||||
|
||||
Reference in New Issue
Block a user