Skip to main content

Module dependencies

Module dependencies 

Source
Expand description

Sync GitHub blocked-by links into SQLite and hold tasks until those links are done.

Native blocked_by links and Depends on lines in the issue body are both stored, deduplicated by repository and number. A failed read leaves stored rows in place.

Structs§

DepNotice
DepRef
SyncOutcome

Functions§

apply_claim_gates
Move new and routed tasks with open dependencies to waiting, and release waiting tasks whose dependencies are done
clear_blocker_read_cache
Forget when a blocker was last read, so the next refresh reads it at once. Called when a task reaches done. Without it a blocker that finishes right after a read holds its dependents for the rest of the TTL, and a chain pays that at each step. A blocker orch does not manage has no task to finish, so it keeps the full TTL
dispatch_is_waiting
True when dispatch must not start this task. A check error also skips dispatch
emit_dependency_notices
parse_body_dependencies
Parse Depends on and Blocked by lines.
parse_depends_on_token
One --depends-on token: a bare issue number, #12, or owner/repo#12
reconcile_dependencies
Refresh blocked-by links for schedulable tasks, then hold or release them.
refresh_blocker_snapshots
Read each blocker’s issue and pull request, then store the snapshot the claim gate reads.
refuse_if_waiting
Stop a manual route, run, or retry while dependencies are open.
sync_issue_dependencies
Replace one issue’s dependency rows from the native blocked-by links and the issue body.