Repository navigation
Conversation
POST /api/system/repair/pass recovers overdue ready tasks and expired leases, creates lost workflow tasks and deadline tasks, and enforces expired activity deadlines, with PHP's request rules, scope-fair selection and loop throttle. Recoveries native does not perform yet (an expired running activity lease, a missing task for a run waiting on an activity, timer, update, signal or child) are reported as candidate failures with 207. Repair status now shares the pass's candidate query, with PHP 2.11's availability rule and microsecond cutoff.
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #325. Stacked on #686 (payload cleanup).
Native now serves
POST /api/system/repair/passlike published Server 2.11.1 (SystemController::repairPassoverTaskWatchdog::runPass).What the pass does. It is server-wide. It is admin-only and also allowed in named namespaces.
run_ids(at most 100 strings of 1–128 characters),instance_id,connectionandqueue(comma-separated;defaultalso matches a null or empty column), andrespect_throttle. Strings are trimmed and empty ones read as null. Invalid input answers Laravel's 422.throttled: truewithin 5 seconds of the previous pass. Any other pass runs and restarts it. The server's namespaces share the throttle.deadline_expiredtask.Not ported yet. Two recoveries are reported as their candidate's failure, so the pass answers 207 instead of claiming a repair:
last_error.The lease-expiry gap is the next slice.
Shared rule.
GET /api/system/repairand the pass now share one candidate query. It carries 2.11's extra availability condition on the overdue branch and binds the redispatch cutoff with microseconds. Native's per-task recheck uses availability after the last dispatch as the redispatch reference, likedispatchOverdue.Evidence.
--all-targetspasses on SQLite (236 unit and 418 integration tests).repair-pass: 9 requests whose answers were checked against a fresh 2.11.1 server. A local copy of the parity step passed all 56 fixtures on published PHP, embedded and native. Its contract unit test has 16 cases.Checkpoint:
docs/rust-server-port-checkpoints/2026-10-23-repair-pass.md.