mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
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:
@@ -53,6 +53,7 @@ def get_deployment_lock(error_rerun_script):
|
|||||||
break
|
break
|
||||||
except OSError:
|
except OSError:
|
||||||
print(WARNING + "Another deployment in progress; waiting for lock... (If no deployment is running, rmdir %s)" % (LOCK_DIR,) + ENDC)
|
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)
|
time.sleep(3)
|
||||||
|
|
||||||
if not got_lock:
|
if not got_lock:
|
||||||
|
|||||||
Reference in New Issue
Block a user