From 76583d4a3ae618ac5cbb0967dc1635aa35e68a57 Mon Sep 17 00:00:00 2001 From: Ameer Haj Ali Date: Sun, 21 Jun 2020 11:12:37 -0700 Subject: [PATCH] Creating head node might take more than 50-30 seconds to show up. (#9066) --- python/ray/autoscaler/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/autoscaler/commands.py b/python/ray/autoscaler/commands.py index d69922891..2893900c8 100644 --- a/python/ray/autoscaler/commands.py +++ b/python/ray/autoscaler/commands.py @@ -228,7 +228,7 @@ def get_or_create_head_node(config, config_file, no_restart, restart_only, yes, start = time.time() head_node = None while True: - if time.time() - start > 5: + if time.time() - start > 50: raise RuntimeError("Failed to create head node.") nodes = provider.non_terminated_nodes(head_node_tags) if len(nodes) == 1: