Skip to content

Commit 2b00f86

Browse files
committed
adding delay after first update to server
1 parent bb03c1a commit 2b00f86

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

singularity/build/google.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import subprocess
4848
import sys
4949
import tempfile
50+
import time
5051
import uuid
5152
import zipfile
5253

@@ -349,8 +350,12 @@ def finish_build(logfile=None,singularity_version=None,repo_url=None,bucket_name
349350
# Send it back!
350351
if params['logging_url'] != None:
351352
finish = requests.post(params['logging_url'],data=response)
353+
354+
# Delay a minute, to give buffer between bringing instance down
355+
time.sleep(60)
352356

353357

358+
354359
#####################################################################################
355360
# METADATA
356361
#####################################################################################

singularity/build/scripts/singularity-build-latest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ sudo pip3 install gitpython
1414
cd /tmp && git clone https://github.com/singularityware/singularity-python
1515
cd singularity-python && python3 setup.py sdist && sudo python3 setup.py install && cd ..
1616
python3 -c "from singularity.build.google import run_build; run_build()" > /tmp/.shub-log 2>&1
17-
command=$(echo "from singularity.build.google import finish_build; finish_build(logfile='/tmp/.shub-log')")
17+
command=$(echo "from singularity.build.google import finish_build; finish_build()")
1818
python3 -c "$command"

0 commit comments

Comments
 (0)