Skip to content

Commit c75997a

Browse files
authored
[Test][Autoscaler] deflaky unexpected dead actors in tests by setting max_restarts=-1 (#3700)
1 parent f15ee2b commit c75997a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ray-operator/test/e2eautoscaler/create_detached_actor.py

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

12-
@ray.remote(num_cpus=args.num_cpus, num_gpus=args.num_gpus, resources={"CustomResource": args.num_custom_resources})
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.
14+
@ray.remote(max_restarts=-1, num_cpus=args.num_cpus, num_gpus=args.num_gpus, resources={"CustomResource": args.num_custom_resources})
1315
class Actor:
1416
pass
1517

0 commit comments

Comments
 (0)