quak backup refuses to run while another backup of the same directory runs, exit 2 (closes #169) #178

Merged
clawbot merged 1 commits from issue-169-backup-lock into next 2026-10-06 20:30:53 +02:00
1 Commits
Author SHA1 Message Date
clawbot df37d0a858 quak backup refuses to run while another backup of the same directory runs, exit 2 (closes #169)
check / check (push) Waiting to run
lib.backup() takes a lock, backup.lock in its download directory, made
with proper-lockfile, before its refresh, and removes it when it ends. A
second backup of the directory fails at once with an error naming it.
quak backup takes the lock itself before it opens its library and passes
lockHeld to the backup, so a refused run sends no request; it prints the
error as one line and exits 2. A lock untouched for 10 seconds, left by a
run that could not remove it, is taken over.

Deviation: yarn.lock was regenerated by yarn add in the pinned node image.
Judgement call: a run failing at its refresh leaves the directory, empty.
Judgement call: a lock removed mid-run stops that run with an uncaught
error, the library's default.

Model: opus-5-5
2026-10-06 17:08:43 +00:00