Skip to content

feat(metadocs): single-run flock — nightly job and manual backfill must not race - #30

Merged
AbsoluteMode merged 1 commit into
mainfrom
feat/metadocs-single-run-lock
Aug 2, 2026
Merged

feat(metadocs): single-run flock — nightly job and manual backfill must not race#30
AbsoluteMode merged 1 commit into
mainfrom
feat/metadocs-single-run-lock

Conversation

@AbsoluteMode

Copy link
Copy Markdown
Owner

Per-session runs are hours-long during a backfill, so the 21:00 launchd job
overlapping a manual run stopped being hypothetical: two runs would race
over watermarks and the git repo. flock rather than a pid file — the lock
dies with the process, a crash never wedges the nightly job. The yielding
run exits 0: the overlap is expected and the other run is doing its work.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com

…st not race

Per-session runs are hours-long during a backfill, so the 21:00 launchd job
overlapping a manual run stopped being hypothetical: two runs would race
over watermarks and the git repo. flock rather than a pid file — the lock
dies with the process, a crash never wedges the nightly job. The yielding
run exits 0: the overlap is expected and the other run is doing its work.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@AbsoluteMode
AbsoluteMode merged commit 699217b into main Aug 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants