docs(jobs): write down that the job system is single-process #514
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!514
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/jobs-are-single-process"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #488
The filer asked which claiming strategy the Postgres job store uses, and said plainly they had not read this repository. I have.
There is no Postgres job store
Two implementations:
MemoryJobStoreandFileJobStore. No SQL anywhere ininternal/orcmd/— nodatabase/sql, no driver, noFOR UPDATE SKIP LOCKED, no advisory lock, no atomicUPDATE … RETURNING. I grepped for each.So the question has a fourth answer: none, because one process was assumed. The claim is a transition guarded by a process-local
sync.Mutex.The double execution they feared cannot happen that way
The queue is an in-process Go channel. Two replicas hold two separate queues; neither can hand the other's job to a worker, because there is no shared queue to hand it from.
The real failures are quieter, which is why they are worth writing down:
Their actual ask
Done, and it is stronger than single-writer: single-process, across the store, the queue, and the worker pool. The new doc also lists what would have to change first, so "provision a database" is not mistaken for "this is ready for two replicas".
ward exec gategreen: build, policy-check, vet, test, test-skips, pre-commit.