Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Snapshots

on:
schedule:
# Off the busy slots (top of the hour, */4 hours): GitHub skips scheduled runs under load.
- cron: '23 2,6,10,14,18,22 * * *'
# Hourly through the 5th: a thread lands on the first weekday, as late as the 3rd.
# Off the busy minutes. GitHub skips and delays scheduled runs under load: every 4h left gaps of
# 10h (2026-10-10), past STALE_AFTER_MS. More slots shrink the gap a skip leaves.
- cron: '23 */2 * * *'
# Hourly through the 5th: a thread lands on the first weekday, as late as the 3rd. Until a run
# after a new thread, the Worker parses that thread whole per request (over the CPU limit when large).
- cron: '49 * 1-5 * *'
# Keep inputs empty: nothing is interpolated into the run.
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion src/sources/boards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { parseSnapshot, SNAPSHOT_KEY } from '../boards/snapshot.ts';
import { SourceError, type Adapter } from '../types.ts';

const HOUR = 60 * 60 * 1000;
/** One missed 4-hourly run plus scheduler delay. */
/** Scheduled snapshots (snapshots.yml) must land more often than this, GitHub's skips and delays included. */
export const STALE_AFTER_MS = 9 * HOUR;
export const DROP_AFTER_MS = 24 * HOUR;

Expand Down
Loading