Rename max_reconstructions to max_restarts and use -1 for infinite (#8274)

Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
This commit is contained in:
Max Fitton
2020-05-14 10:30:29 -05:00
committed by GitHub
co-authored by Edward Oakes
parent 5f4c196fed
commit 00325eb2b2
71 changed files with 403 additions and 393 deletions
+4 -4
View File
@@ -902,7 +902,7 @@ cdef class CoreWorker:
Language language,
FunctionDescriptor function_descriptor,
args,
uint64_t max_reconstructions,
int64_t max_restarts,
resources,
placement_resources,
int32_t max_concurrency,
@@ -929,7 +929,7 @@ cdef class CoreWorker:
check_status(CCoreWorkerProcess.GetCoreWorker().CreateActor(
ray_function, args_vector,
CActorCreationOptions(
max_reconstructions, max_concurrency,
max_restarts, max_concurrency,
c_resources, c_placement_resources,
dynamic_worker_options, is_detached, name, is_asyncio),
extension_data,
@@ -970,13 +970,13 @@ cdef class CoreWorker:
return VectorToObjectIDs(return_ids)
def kill_actor(self, ActorID actor_id, c_bool no_reconstruction):
def kill_actor(self, ActorID actor_id, c_bool no_restart):
cdef:
CActorID c_actor_id = actor_id.native()
with nogil:
check_status(CCoreWorkerProcess.GetCoreWorker().KillActor(
c_actor_id, True, no_reconstruction))
c_actor_id, True, no_restart))
def cancel_task(self, ObjectID object_id, c_bool force_kill):
cdef: