Skip to content

Fix job delivery, dependency ordering and workflow rollback - #195

Merged
egeominotti merged 1 commit into
mainfrom
severe-job-audit
Nov 17, 2026
Merged

egeominotti merged 1 commit into
mainfrom
severe-job-audit

Conversation

@egeominotti

Copy link
Copy Markdown
Owner

Changes

  • Preserve one-off jobs that use a cron: deduplication key through restart, lease release and scheduler registration. Use scheduler-owned metadata to identify disposable ticks. Repeating a push for a cached custom ID preserves the original manually parked job and its payload.
  • Keep unfinished prerequisites unfinished when the last dependent is canceled. Resolve evicted completions through SQLite or a live in-memory dependency reference. A failed lookup can retry, and a retried prerequisite blocks promotion until its current delivery completes. Persist the parent's actual state when a completed child is linked.
  • Keep active worker deliveries leased through graceful shutdown and broker acknowledgement, including manual processors. Track deliveries returned by a pull crossing pause or close. Release the group slot originally reserved for each delivery even if its data changes.
  • Check child workflow definitions before compensation, retain child history while an ancestor needs it and restore nested signal deadlines after restart. Maintenance keeps compact ownership metadata while scanning retained children.

Verification

All ten defects reproduced in eight baseline Linux runs. On the repaired runtime, all 70 regression cases passed in each of five new isolated machines, three Ubuntu 24.04 and two Debian 13. The scenarios include real TCP workers, SQLite reopenings and actual lease expiry.

The model passed 12 tests with 96,045 assertions. The Docker sandbox passed 12,001 unit cases, 553 TCP cases and 349 embedded cases. The unit suite reported 405 skips. The separate PostgreSQL 18.6 lifecycle and destruction suites passed all 10 cases. Type checking, formatting and the repository startup checks passed.

A separate Ubuntu 24.04 Machine passed 12,132 unit tests with 405 skips, 553 TCP tests, 349 embedded tests and all nine filesystem fault cases. The tested runtime tree is f6a1558aee5b2f9609c1377b019edad1d59c405d. The final Git tree adds the work-item and session evidence.

Upgrade behavior

Jobs written before scheduler-origin tracking follow ordinary recovery. A cron tick already in flight when upgrading may run again.

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 17, 2026 10:57pm UTC

@egeominotti
egeominotti merged commit 53be601 into main Nov 17, 2026
38 of 40 checks passed

This branch was successfully deployed

1 active deployment
Preview — b2986600 Deployed Nov 17, 2026 by vercel[bot]
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.

1 participant