fix: queue on-create jobs sequentially and fix history ordering #56

Merged
josh merged 2 commits from feat/jobs-system into dev 2026-03-28 20:12:32 -04:00
Owner

runJobsOnCreate now awaits each job before starting the next,
ensuring they don't stomp each other's DB writes in parallel.

getInstanceHistory changed to ORDER BY changed_at ASC, id ASC so
the creation event (lowest id) is always first regardless of
same-second timestamps.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

runJobsOnCreate now awaits each job before starting the next, ensuring they don't stomp each other's DB writes in parallel. getInstanceHistory changed to ORDER BY changed_at ASC, id ASC so the creation event (lowest id) is always first regardless of same-second timestamps. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
josh added 1 commit 2026-03-28 20:09:53 -04:00
fix: queue on-create jobs sequentially and fix history ordering
All checks were successful
CI / test (pull_request) Successful in 13s
CI / build-dev (pull_request) Has been skipped
8f35724bde
runJobsOnCreate now awaits each job before starting the next,
ensuring they don't stomp each other's DB writes in parallel.

getInstanceHistory changed to ORDER BY changed_at ASC, id ASC so
the creation event (lowest id) is always first regardless of
same-second timestamps.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
josh added 1 commit 2026-03-28 20:10:01 -04:00
Merge branch 'dev' into feat/jobs-system
All checks were successful
CI / test (pull_request) Successful in 14s
CI / build-dev (pull_request) Has been skipped
a5b409a348
josh scheduled this pull request to auto merge when all checks succeed 2026-03-28 20:10:08 -04:00
josh merged commit 64de0e432c into dev 2026-03-28 20:12:32 -04:00
josh deleted branch feat/jobs-system 2026-03-28 20:12:32 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: josh/Catalyst#56