Repository navigation
feat(fleet-hosted): retire the scheduled ingestion sweep (C2-S4 of #9570, #17079) - #17115
Merged
Merged
Conversation
, #17079) The D8 retire row of the C2 design: the fleet-hosted Worker's scheduled ingestion sweep ran inert for its whole life — INGESTION_REPOS was never populated in production and the sweep was never adopted on a timer. Remove the cron trigger from wrangler.toml and the scheduled handler from worker.ts. The sweeper itself survives as the on-demand POST /v1/ingestion/sweep door (and backfill covers whole-scope passes); runIngestionSweep, the INGESTION_REPOS scope config, and the ingestion routes are untouched. Stale comments in config.ts and routes/ingestion.ts corrected, and the fleet-hosted book chapter updated in the same pass. Refs #17079 (the convert rows and the D7 triage remain: their hard edge — C2-S2 verified for one full cycle — is not yet met).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
3 tasks
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.
What
The D8 retire row of C2-S4 (#17079; design record
doc/2026-11-26T07-52-58Z_design_c2_event_pipeline, §4 D8): the fleet-hosted Worker's scheduled ingestion sweep is retired.wrangler.toml: the[triggers] crons = ["*/15 * * * *"]block is removed; the comments now record the retirement and whatINGESTION_REPOSstill scopes.src/worker.ts: thescheduledhandler (and itsScheduledContext) is removed, with a comment recording the retirement and where the sweeper survives.src/config.tsandsrc/routes/ingestion.tscorrected to match.pkgs/fleet/book/concepts/fleet-hosted.mdupdated in the same pass (the sweeper surface is the on-demand route; the deployment section no longer describes a live scheduled sweep).Why this row, now
The sweep ran inert for its whole life:
INGESTION_REPOSwas never populated in production and the route was not adopted on a timer (design D1/D8). It has no replacement to wait a cycle for — the webhook receiver is the primary ingestion path and stays; the sweeper survives as the on-demandPOST /v1/ingestion/sweepdoor, and backfill covers whole-scope passes.runIngestionSweep, the scope config, and all ingestion routes are untouched, so the package's test suite (which exercises the sweep through the route) is unaffected in substance.Remainder on #17079
The convert rows (
pm-git-sync,fleet-feed-collector, auto-format workflow) and the D7 out-of-repo triage stay open: their hard edge — C2-S2 verified for one full cycle — is not yet met (S2 core landed 2026-11-30, no verified cycle yet).Verification: fleet-run dispatch on this head for
npm test+npm run typecheckinpkgs/fleet/hosted-worker; run id recorded on #17079. CI is not a gate — merging on the lane's diff read, with the run as the fix-forward wake.Refs #17079.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T06:42:10Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "c36a28d672723b085b14125996bcd72b1931e09d" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.