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
+2 -3
View File
@@ -259,7 +259,7 @@ class StreamingQueueTestBase : public ::testing::TestWithParam<uint64_t> {
}
ActorID CreateActorHelper(const std::unordered_map<std::string, double> &resources,
bool is_direct_call, uint64_t max_reconstructions) {
bool is_direct_call, int64_t max_restarts) {
std::unique_ptr<ActorHandle> actor_handle;
// Test creating actor.
@@ -274,10 +274,9 @@ class StreamingQueueTestBase : public ::testing::TestWithParam<uint64_t> {
std::string name = "";
ActorCreationOptions actor_options{
max_reconstructions,
max_restarts,
/*max_concurrency=*/1, resources, resources, {},
/*is_detached=*/false, name, /*is_asyncio=*/false};
// Create an actor.
ActorID actor_id;
RAY_CHECK_OK(CoreWorkerProcess::GetCoreWorker().CreateActor(