Skip to content

Commit 68bc89d

Browse files
committed
stop max attemps
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
1 parent 673e98e commit 68bc89d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

singularity/build/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,10 @@ def send_build_data(build_dir, data, secret,
231231
# Delay a bit, to give buffer between bringing instance down
232232
time.sleep(20)
233233

234-
235-
236-
@retry(wait_exponential_multiplier=1000, wait_exponential_max=10000,retry_on_result=stop_if_result_none)
234+
@retry(wait_exponential_multiplier=1000,
235+
wait_exponential_max=10000,
236+
retry_on_result=stop_if_result_none,
237+
stop_max_attempt_number=5)
237238
def send_build_close(params,response_url):
238239
'''send build close sends a final response (post) to the server to bring down
239240
the instance. The following must be included in params:

0 commit comments

Comments
 (0)