get_deployment_lock: Flush output when reporting lock delays.

This fixes an issue where the output that the lock wasn't unavailable
showed up all at once after the 5 minute timeout.
This commit is contained in:
Tim Abbott
2016-01-10 12:03:02 -08:00
parent 26e9d55e16
commit 5d54f66047

View File

@@ -53,6 +53,7 @@ def get_deployment_lock(error_rerun_script):
break
except OSError:
print(WARNING + "Another deployment in progress; waiting for lock... (If no deployment is running, rmdir %s)" % (LOCK_DIR,) + ENDC)
sys.stdout.flush()
time.sleep(3)
if not got_lock: