mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 07:55:45 +08:00
Upgrade to cloudpickle 0.4.1. (#1164)
* Upgrade to cloudpickle 0.4.1. * Catch more general exceptions thrown by cloudpickle.
This commit is contained in:
committed by
Philipp Moritz
parent
2b6c7af8ad
commit
f59867850e
@@ -299,7 +299,10 @@ class Worker(object):
|
||||
.format(type(e.example_object)))
|
||||
print(warning_message)
|
||||
except (serialization.RayNotDictionarySerializable,
|
||||
pickle.pickle.PicklingError):
|
||||
pickle.pickle.PicklingError,
|
||||
Exception):
|
||||
# We also handle generic exceptions here because
|
||||
# cloudpickle can fail with many different types of errors.
|
||||
_register_class(type(e.example_object), use_pickle=True)
|
||||
warning_message = ("WARNING: Falling back to serializing "
|
||||
"objects of type {} by using pickle. "
|
||||
|
||||
+1
-1
@@ -108,7 +108,7 @@ setup(name="ray",
|
||||
"psutil",
|
||||
"pytest",
|
||||
"redis",
|
||||
"cloudpickle >= 0.2.2",
|
||||
"cloudpickle >= 0.4.1",
|
||||
# The six module is required by pyarrow.
|
||||
"six >= 1.0.0",
|
||||
"flatbuffers"],
|
||||
|
||||
Reference in New Issue
Block a user