mirror of
https://github.com/wassname/ray.git
synced 2026-07-19 11:27:32 +08:00
Fix some bugs causing Travis test failures. (#839)
* Fix bug in which worker has no actor_class attribute. * Remove case where we check if processes are defunct.
This commit is contained in:
committed by
Philipp Moritz
parent
ca53e9ae7b
commit
cf41964816
+3
-1
@@ -6,6 +6,7 @@ import cloudpickle as pickle
|
||||
import hashlib
|
||||
import inspect
|
||||
import json
|
||||
import time
|
||||
import traceback
|
||||
|
||||
import ray.local_scheduler
|
||||
@@ -215,7 +216,8 @@ def reconstruct_actor_state(actor_id, worker):
|
||||
print("Loading actor state from checkpoint {}"
|
||||
.format(checkpoint_index))
|
||||
# Wait for the actor to have been defined.
|
||||
worker._wait_for_actor()
|
||||
while not hasattr(worker, "actor_class"):
|
||||
time.sleep(0.001)
|
||||
# TODO(rkn): Restoring from the checkpoint may fail, so this should be
|
||||
# in a try-except block and we should give a good error message.
|
||||
worker.actors[actor_id] = (
|
||||
|
||||
Reference in New Issue
Block a user