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
4 changes: 2 additions & 2 deletions src/lib/tripwire/ingest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ async function listBlobsPage(prefix: string, cursor: string | undefined): Promis
}

// Bound the listing to the trailing INGEST_WINDOW_DAYS UTC dates. Cron runs
// every 5 minutes, so a 2-day window leaves 24h+ of slack against any cron
// outage. Events older than the window won't be auto-ingested by the cron;
// hourly, so a 2-day window leaves ~47h of slack against any cron outage.
// Events older than the window won't be auto-ingested by the cron;
// the CLI script (scripts/tripwire/ingest-events.ts) still walks the full
// events/ prefix and can backfill manually if a longer outage happens.
const INGEST_WINDOW_DAYS = 2
Expand Down
4 changes: 2 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"crons": [
{
"path": "/api/cron/tripwire-ingest",
"schedule": "*/5 * * * *"
"schedule": "0 * * * *"
},
{
"path": "/api/cron/tripwire-build-stats",
"schedule": "*/15 * * * *"
"schedule": "0 4 * * *"
},
{
"path": "/api/cron/tripwire-asn-update",
Expand Down
Loading