Skip to content

Commit 6322758

Browse files
committed
[Test][Autoscaler] deflaky unexpected dead actors in tests by setting max_restarts=-1
Signed-off-by: Rueian <[email protected]>
1 parent 615e570 commit 6322758

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ray-operator/test/e2eautoscaler/create_detached_actor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
parser.add_argument('--num-custom-resources', type=float, default=0)
1010
args = parser.parse_args()
1111

12-
# set max_restarts=-1 to restart unexpected death in tests.
12+
# set max_restarts=-1 as a workaround to restart unexpected death in tests.
13+
# TODO (rueian): Remove the max_restarts workaround when https://github.com/ray-project/ray/issues/40864 is fixed.
1314
@ray.remote(max_restarts=-1, num_cpus=args.num_cpus, num_gpus=args.num_gpus, resources={"CustomResource": args.num_custom_resources})
1415
class Actor:
1516
pass

0 commit comments

Comments
 (0)