Add cron monitor APIs: labels, watch, progress, and query tools.

Extend jobs with lifecycle projection and history policies so listeners can poll state at scale without breaking existing cron_* flows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-10 15:23:42 +08:00
parent 43facd608a
commit b6934b20a3
10 changed files with 1501 additions and 53 deletions

5
lib/fire-status.js Normal file
View file

@ -0,0 +1,5 @@
/** Shared run status constants — keep free of fire/monitor imports. */
export const ACTIVE_RUN_STATUSES = new Set(['queued', 'running'])
export const TERMINAL_RUN_STATUSES = new Set(['succeeded', 'failed', 'skipped'])