Widen the window later
Start small if you want to — 7 days first on a rate-limited instance is a good
first move. What does not widen it afterwards is raising
ingest.backfillDays:
ingest.backfillDaysis read only on a source's first run. Once that backfill finishes the source has a watermark, and every run after it walks forward from there. Raise the value,helm upgrade, and you get a clean upgrade, a copy that runs, and the same window you had before.
Nothing goes wrong when that happens, which is what makes it worth stating: the
mirror reports its own horizon honestly, so answers stay correctly scoped to the
history you have. They are just scoped to 7 days while you believe they are
scoped to 90. (An ingest run that notices the gap now says so in its log —
INGEST_BACKFILL_DAYS=90 … IT IS NOT CONSULTED ON THIS BRANCH.)
The supported way to widen it is a re-sweep: name the date you want the source to reach back to.
helm upgrade <release> <chart> -n <namespace> -f <your values file> \
--set ingest.github.rewalkFrom=2026-03-01
and the same for Jira, separately — the two are deliberately not one value, so widening one source during a staged go-live does not restart the other:
--set ingest.jira.rewalkFrom=2026-03-01
What it does, and does not do:
- it walks the ground between that date and where the source is now, and upserts what it finds. A date later than the source's last completed copy walks from that copy instead, so no day between them is skipped. Nothing is truncated — this is a repair, not a first run, so the source keeps answering throughout;
- the source's next copy carries it out (Copy now on the stream starts one at once), and it costs what a backfill of that length costs. Watch it the way you watched the first one. One exception: where the next run would empty a source's tables before copying, as a source's first live run does, or because its manifest changed what they hold before its first copy completed, it does that first;
- it happens once per date. Leave the value in your values file: the run that carries it out records the date, so the 6-hourly schedule does not re-walk those months on every firing. To re-sweep again, name a different date. When a re-sweep does not finish says when you need to;
- coverage already earned is never given up. Re-sweeping the last six weeks does not make the source claim six weeks of history;
Check it landed with the horizon the source reports on Admin → Context streams,
with each stream's horizon in the source's first_backfill on
GET /api/admin/sources (Read it from the API),
or:
kubectl exec -n <namespace> statefulset/<release>-postgres -- \
psql -U postgres -d prism -c "
SELECT source, detail->>'backfill_horizon' AS horizon,
detail->>'issue_backfill_horizon' AS issue_horizon, detail->'rewalk'
FROM ingest_state;"
GitHub reports two horizons, because it walks two searches: horizon is how
far back its pull requests reach and issue_horizon how far back its issues do.
Each answer is scoped to the one it came from, so a pull-request question and an
issue question over the same source can honestly be labelled with different
coverage.
(The issue horizon starts a year back on a new install; see Issues reach back a year.)
When a re-sweep does not finish
The horizon moves back only when a re-sweep finishes. A re-sweep can stop
before or during its walk. The run hits ingest.runDeadlineSeconds, the pod is evicted, or part
of the source does not answer. The re-sweep keeps every row it already wrote.
What happens next depends on the source.
- GitHub pull requests and issues. The re-sweep does not resume by itself, and the horizon does not move. If the horizon has not moved, name a nearby date and run it again.
- GitLab, Jira, GitHub Actions and the two API billing streams. The next
runs carry the re-sweep on by themselves. Each part of the source that did
not finish is walked from the re-sweep's date again. Each part is tried at
most three more times. A try counts only when a run starts that part's walk.
A part is one GitLab group or one GitHub Actions repository. Jira and
each billing stream are one part. The horizon moves back in the run where
the last part finishes, and
detail->'rewalk'gets acompleted_at. While the re-sweep is carried,detail->'rewalk'->'owed'->'partitions'names the parts that still owe it. A part taken out of the source's list while it owes the re-sweep still owes it.detail->'rewalk'->'owed'->'unlisted'names it, and the re-sweep is not finished while it is out. Listed again, it owes the re-sweep again. If a part was removed for good, set a new date in the chart or ask for a re-read from a date on the page. The re-sweep then finishes without that part. If that part is listed again later, it is copied only from the watermark, and an answer over it says that its earlier rows were never fetched. - A part that still owes it after three more tries is given up. It is named in
detail->'rewalk'->'owed'->'gave_up', and the run log says so in aWARNINGline. The re-sweep never gets acompleted_at, and the horizon does not move. Name a nearby date and run it again. - The stream's page on Admin → Context streams shows both states. It names each part that still owes the re-sweep, and each part taken out of the list while it owed it. It names each part that was given up, with a ⚠ that says on hover what that costs. This holds for a re-sweep set in the chart and for a re-read asked for on the page.
From the stream's page
The chart value above re-sweeps every stream of a recipe and needs a
helm upgrade. To re-read one stream, open it on Admin → Context
streams, pick a date, and press Re-read from this date. This is the lever
for a repository or project added with Edit parameters…, which is read only
from the stream's last copy forward, and for a stream registered under a name
of its own, which no chart value reaches.
- the stream's next copy walks it from that date. It is the whole stream, every repository or project it covers, not only the one you added, so a date far back is a long walk. A date later than the stream's last copy walks from its last copy instead, so no day is skipped;
- nothing is truncated, and the horizon moves back only when the walk finishes;
- it happens once per request. A walk that stops part way is carried on, or not, as When a re-sweep does not finish says. Where it is not, ask again;
- the stream's page says whether the request is waiting, has begun, or has finished.
It is offered only where a re-read means something:
- the stream must have completed a copy. Until then there is nothing to read again, and its first copy reads its backfill window;
- the stream must be walked by date. A snapshot or file stream is copied whole every time; a stream that reads its system at question time copies nothing; a stream that resumes by key has no date to start from. The page says which, instead of offering the button.
Asking for it is recorded in the audit log, with the date. Only the ingest
engine reads the request. While a stream's engine mode is off, nothing reads
it until the engine is armed, and the re-read happens then; use the chart
value instead.