By default, reconstruction should only be enabled for actor creation. (#6613)

* wip

* fix

* fix
This commit is contained in:
Eric Liang
2019-12-26 19:57:50 -08:00
committed by GitHub
parent 98689bd263
commit d3db9e9c1e
8 changed files with 20 additions and 40 deletions
+1 -6
View File
@@ -768,12 +768,7 @@ def make_actor(cls, num_cpus, num_gpus, memory, object_store_memory, resources,
"methods in the `Checkpointable` interface.")
if max_reconstructions is None:
if ray_constants.direct_call_enabled():
# Allow the actor creation task to be resubmitted automatically
# by default.
max_reconstructions = 3
else:
max_reconstructions = 0
max_reconstructions = 0
if not (ray_constants.NO_RECONSTRUCTION <= max_reconstructions <=
ray_constants.INFINITE_RECONSTRUCTION):