peter
45c0ee7d58
feat(scheduler): every background run is a durable row
...
What a job last did lived in the API process's memory and was gone at
every restart; the audit log kept a run only when it was manual, failed
or changed something. Now each run is a job_runs row written at its
start and its end in its own session: who started it, its outcome as
data, what it spent of the YouTube quota (quota_events.job_run_id) and
the lines it logged (log_events.run_id, filterable in the log console).
- a run a stopped process left open is marked interrupted at startup
- "run now" is a one-shot job on the scheduler, which now always starts
(interval jobs only with SCHEDULER_ENABLED); the manual actor is reset
after the run, since pool threads are reused
- the dashboard's last run comes from job_runs, so it survives a deploy
- runs leave the audit log: migration 0109 moves the old job_run rows
over (and back on downgrade); the audit page's run folding goes
- job_run_retention_days (default 30) prunes old runs in audit_gc
2026-10-17 23:08:55 +02:00
..
2026-10-05 00:19:38 +02:00
2026-10-14 18:40:23 +02:00
2026-10-16 01:13:31 +02:00
2026-10-05 00:19:39 +02:00
2026-10-10 15:35:12 +02:00
2026-09-19 19:19:29 +02:00
2026-10-17 23:08:55 +02:00
2026-10-05 00:19:39 +02:00
2026-10-15 06:05:51 +02:00
2026-10-05 00:19:39 +02:00
2026-10-15 04:58:16 +02:00
2026-10-05 00:19:39 +02:00
2026-09-29 21:21:19 +02:00
2026-10-11 05:34:25 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-09-27 13:58:23 +02:00
2026-10-05 00:19:39 +02:00
2026-09-18 03:16:15 +02:00
2026-10-05 00:19:39 +02:00
2026-10-12 22:19:37 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 03:16:27 +02:00
2026-10-12 20:54:47 +02:00
2026-10-11 03:30:34 +02:00
2026-10-14 18:40:23 +02:00
2026-10-11 04:42:55 +02:00
2026-10-05 03:16:27 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-11 05:34:25 +02:00
2026-08-23 07:43:06 +02:00
2026-10-11 03:30:34 +02:00
2026-09-04 20:29:33 +02:00
2026-10-05 00:19:39 +02:00
2026-09-04 20:29:33 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-11 03:30:34 +02:00
2026-09-19 19:19:30 +02:00
2026-09-19 05:54:19 +02:00
2026-08-23 07:43:06 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-08-23 07:43:06 +02:00
2026-10-06 21:02:07 +02:00
2026-10-13 03:15:59 +02:00
2026-10-13 02:32:49 +02:00
2026-10-12 15:28:31 +02:00
2026-10-15 05:47:00 +02:00
2026-09-19 04:51:31 +02:00
2026-10-10 21:56:47 +02:00
2026-08-28 02:37:56 +02:00
2026-10-05 01:13:06 +02:00
2026-10-05 00:19:39 +02:00
2026-09-19 07:34:17 +02:00
2026-10-05 00:19:39 +02:00
2026-10-11 05:34:25 +02:00
2026-09-19 01:33:32 +02:00
2026-10-15 04:58:16 +02:00
2026-10-15 04:58:16 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-09-01 23:31:49 +02:00
2026-10-04 17:53:19 +02:00
2026-10-05 00:19:50 +02:00
2026-10-13 00:14:09 +02:00
2026-10-11 04:42:55 +02:00
2026-10-13 00:14:09 +02:00
2026-10-13 00:14:09 +02:00
2026-10-15 04:58:16 +02:00
2026-10-17 23:08:55 +02:00
2026-10-05 00:19:39 +02:00
2026-08-23 07:43:06 +02:00
2026-09-29 22:46:04 +02:00
2026-08-23 07:43:06 +02:00
2026-10-05 00:19:39 +02:00
2026-08-23 07:43:06 +02:00
2026-08-23 07:43:06 +02:00
2026-10-11 03:30:34 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-11 05:34:25 +02:00
2026-10-05 03:16:27 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-09-19 19:19:30 +02:00
2026-10-08 21:18:48 +02:00
2026-09-19 19:19:30 +02:00
2026-10-08 22:12:43 +02:00
2026-10-08 21:18:48 +02:00
2026-10-09 01:22:00 +02:00
2026-10-10 00:03:08 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-09-19 18:21:06 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-17 23:08:55 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-10 00:03:08 +02:00
2026-10-05 00:19:39 +02:00
2026-10-06 22:31:48 +02:00
2026-10-05 00:19:39 +02:00
2026-10-09 23:46:39 +02:00
2026-10-06 22:31:48 +02:00
2026-10-07 23:16:25 +02:00
2026-10-05 00:19:39 +02:00
2026-09-27 13:58:23 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-06 23:55:41 +02:00
2026-10-11 05:34:25 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-04 17:53:19 +02:00
2026-10-05 00:19:38 +02:00
2026-10-06 23:55:41 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:50 +02:00
2026-10-11 04:42:55 +02:00
2026-08-23 07:43:06 +02:00
2026-10-05 00:19:39 +02:00
2026-10-17 23:08:55 +02:00
2026-10-05 00:19:38 +02:00
2026-10-05 00:19:39 +02:00
2026-08-23 07:43:06 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-11 05:34:25 +02:00
2026-10-15 04:58:16 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-08-23 07:43:06 +02:00
2026-08-23 07:43:06 +02:00
2026-10-12 22:19:37 +02:00
2026-10-12 22:19:37 +02:00
2026-09-05 04:02:57 +02:00
2026-10-05 00:19:38 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00
2026-10-11 03:30:34 +02:00
2026-10-13 00:14:09 +02:00
2026-09-18 22:50:37 +02:00
2026-09-19 04:51:31 +02:00
2026-10-05 00:19:39 +02:00
2026-10-05 00:19:39 +02:00