MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / scheduled

Function scheduled

telemetry-worker/src/index.ts:358–360  ·  view source on GitHub ↗

* Nightly (00:30 UTC, see wrangler.jsonc): roll the completed day up into the * daily_* tables and purge raw events past the retention window. Awaited rather * than backgrounded so a failure marks the cron run failed — everything it does is * an idempotent upsert or a bounded delete, so the

(event, env)

Source from the content-addressed store, hash-verified

356 * an idempotent upsert or a bounded delete, so the retry is safe.
357 */
358 async scheduled(event, env): Promise<void> {
359 await runNightly(env, event.scheduledTime);
360 },
361} satisfies ExportedHandler<Env>;

Callers

nothing calls this directly

Calls 1

runNightlyFunction · 0.90

Tested by

no test coverage detected