From 7cf29beb4bf99eccc55ef546f30504b7e095163a Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Mon, 16 Dec 2019 18:12:05 -0800 Subject: [PATCH] add warn --- python/ray/actor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/ray/actor.py b/python/ray/actor.py index b7b58d9be..adb0ab726 100644 --- a/python/ray/actor.py +++ b/python/ray/actor.py @@ -760,6 +760,12 @@ def make_actor(cls, num_cpus, num_gpus, memory, object_store_memory, resources, max_reconstructions = 3 else: max_reconstructions = 0 + else: + logger.warning( + "Warning: with direct call actors, `max_reconstructions` " + "currently only applies to the actor creation task. If you need " + "this behaviour, consider downgrading to Ray 0.7.7, or setting " + "the RAY_FORCE_DIRECT=0 env var.") if not (ray_constants.NO_RECONSTRUCTION <= max_reconstructions <= ray_constants.INFINITE_RECONSTRUCTION):