0004 Collect daily without keeping the job file¶
- Status: Accepted
- Date: 2026-12-03
Context¶
The collector should run once a day without anyone starting it. GitHub Actions can run it on a schedule (see the architecture overview). Each run starts on a fresh machine that's deleted when the run ends, so the job file it saves disappears unless the workflow keeps it somewhere.
Where to keep it is limited by two facts:
- The WFHeaven repository is public, because it's also a portfolio. Anyone signed in to GitHub can download a public repository's workflow artifacts, and anyone can read its logs.
- The Himalayas terms forbid passing its jobs on to other boards, aggregators, or feeds. A public file of every job collected each day comes close to that (see Job sources).
Nothing reads the job file yet. Ranking and email come later in Milestone 1.
Options considered¶
| Option | For | Against |
|---|---|---|
| Upload the file as a workflow artifact | Two lines of setup | Public to anyone signed in to GitHub, which risks breaking the source terms |
| Push the file to a separate private repository | Private, and keeps a history | Needs a second repository and a secret access token |
| Make this repository private | Artifacts become private | Removes the portfolio and the docs site, because GitHub Pages needs a public repository on a free account |
| Don't keep the file yet | Nothing to set up or protect | No history of collected jobs |
Decision¶
The workflow runs the collector once a day and doesn't keep the job file. The run shows only how many postings each source returned, and it fails if a source fails or returns nothing.
For now, the daily run is a health check: it proves every day that both sources still work, and a failure sends an email.
Consequences¶
- No job data leaves the runner, so nothing public can break the source terms.
- There's no history of collected jobs. Avoiding repeated jobs in emails needs stored data, so a new ADR must choose storage before the email step is built.
- A broken source shows up within a day instead of when someone next runs the collector by hand.
- The workflow file shouldn't need to change when storage is added: a new step saves the file that the collect step already writes.