Skip to content

Commit

Permalink
Cleanup stale meta locks even if the build is not locked
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Nov 12, 2024
1 parent 105a20a commit 493a44b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/include/build_lock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function _meta_lock() {
if [ -f "$BUILD_LOCKFILE".lock ]
then
wrn "WARNING: failed to lock build. The lock file is locked."
_cleanup_stale_locks
return 1
fi
printf '%s %s\n' "$SERVER_UUID" "$$" > "$BUILD_LOCKFILE".lock
Expand Down

0 comments on commit 493a44b

Please sign in to comment.