Release testbox auto deploy lock each tick
This commit is contained in:
parent
051259d720
commit
0490f5d357
@ -240,9 +240,11 @@ run_once() {
|
||||
local java_before java_after
|
||||
local services_line
|
||||
|
||||
exec 9>&- 2>/dev/null || true
|
||||
exec 9>"$LOCK_FILE"
|
||||
if ! flock -n 9; then
|
||||
log "deploy lock busy; skip this tick"
|
||||
exec 9>&-
|
||||
return 0
|
||||
fi
|
||||
|
||||
@ -301,6 +303,9 @@ run_once() {
|
||||
rc=$?
|
||||
[ "$rc" -eq 10 ] || log "admin update skipped due to error rc=$rc"
|
||||
fi
|
||||
|
||||
flock -u 9
|
||||
exec 9>&-
|
||||
}
|
||||
|
||||
usage() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user