fix: feat: stack lock protocol for singleton project stack access (#255)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
49c4be0706
commit
a77aa19c3f
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue