fix: feat: stack lock protocol for singleton project stack access (#255)
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline failed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-05 20:43:02 +00:00
parent acd0457ca5
commit 6eb2c8cfdc

View file

@ -126,7 +126,8 @@ stack_lock_acquire() {
;;
held:*)
local cur_holder="${status#held:}"
local remaining=$(( deadline - $(date -u +%s) ))
local remaining
remaining=$(( deadline - $(date -u +%s) ))
if [ "$remaining" -le 0 ]; then
echo "[stack-lock] timed out waiting for lock on ${project} (held by ${cur_holder})" >&2
return 1