Skip to content

Commit 87f22e2

Browse files
committed
Shorten the timeout for presto user waiting
1 parent db82a26 commit 87f22e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

prestoadmin/server.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def new_sysnode_processor(node_info_rows):
7575
'system.runtime.nodes where '
7676
'url_extract_host(http_uri) = \'%s\'',
7777
new_sysnode_processor))
78-
7978
)
8079

8180
EXTERNAL_IP_SQL = 'select url_extract_host(http_uri) from ' \
@@ -136,7 +135,7 @@ def update_configs():
136135
_LOGGER.info('No connector directory found, not adding connectors.')
137136

138137

139-
@retry(stop_max_delay=30000, wait_fixed=2000)
138+
@retry(stop_max_delay=3000, wait_fixed=250)
140139
def wait_for_presto_user():
141140
ret = sudo('getent passwd presto', quiet=True)
142141
if not ret.succeeded:

0 commit comments

Comments
 (0)