unsupportedpastels
04e1447acb
fix(cron): pair output docs with attempts after sessions are known
...
An attempt claimed before or in the same second as another run's output
doc (a manual `hermes cron run` overlapping a tick) became the doc's
newest candidate. When it failed without a session, the doc rendered as
an extra cron_output row with that attempt's status, and the attempt's
own failed row stayed hidden because representation was decided before
reconciliation.
_list_cron_output_runs now returns docs and terminal ledger attempts
separately; _reconcile_cron_runs pairs each doc with its likeliest
writer once every attempt's session is known (an attempt closed before
the doc only reaches it through the grace; one whose session spans the
doc beats an overlapping one without; then the newest claim), so each
attempt gets exactly one row: its session, else its doc, else its
ledger row. The internal _execution_candidates/_execution_id row keys
are gone.
Also: the cron request partial index is built from CRON_PRINCIPAL_ID;
the admission SQL derives its substr offsets from CRON_REQUEST_PREFIX;
a prefix_range() helper replaces three hand-rolled half-open bounds;
the two cron run-history suites share tests/fakes/cron_owner.py.
Refs #134889 (CRON-1)
Refs #139162
Refs #138812
Addresses review by @kshitijk4poor on #139273 .
2026-10-15 16:33:44 -04:00
..
2026-10-12 21:01:49 -07:00
2026-10-10 15:20:13 +02:00
2026-10-14 05:52:49 -07:00
2026-10-09 17:34:38 +02:00
2026-10-12 16:55:20 -07:00
2026-10-15 16:33:44 -04:00
2026-10-06 06:22:29 -07:00
2026-10-13 04:27:43 -07:00
2026-10-14 22:36:14 -04:00
2026-10-14 22:36:14 -04:00
2026-10-10 15:20:13 +02:00
2026-10-08 21:38:54 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-13 04:42:06 -07:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:19:05 -07:00
2026-10-06 03:44:49 -07:00
2026-10-14 00:32:22 +05:30
2026-10-08 17:22:54 +02:00
2026-10-14 00:32:21 +05:30
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-13 01:35:42 +05:30
2026-10-14 00:32:21 +05:30
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 14:19:47 -05:00
2026-10-09 17:34:36 +02:00
2026-10-08 12:41:27 -07:00
2026-10-14 00:32:21 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:32:21 +05:30
2026-10-09 02:10:47 -07:00
2026-10-08 12:09:24 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 10:24:04 -07:00
2026-10-06 14:22:13 -07:00
2026-10-14 00:32:21 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:25:53 -07:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-15 00:31:20 -04:00
2026-10-07 10:57:34 -07:00
2026-10-15 15:27:38 -04:00
2026-10-14 20:38:25 -04:00
2026-10-15 00:31:20 -04:00
2026-10-14 20:47:20 -04:00
2026-10-08 17:22:54 +02:00
2026-10-13 00:40:42 -07:00
2026-10-13 02:51:44 -07:00
2026-10-14 20:47:20 -04:00
2026-10-15 13:27:53 +05:30
2026-10-15 08:34:12 -07:00
2026-10-11 17:21:07 +05:30
2026-10-15 00:31:20 -04:00
2026-10-12 22:50:08 -07:00
2026-10-12 22:50:08 -07:00
2026-10-15 08:34:12 -07:00
2026-10-15 00:31:20 -04:00
2026-10-15 00:07:50 -04:00
2026-10-09 10:24:04 -07:00
2026-10-12 22:50:08 -07:00
2026-10-08 21:29:48 +02:00
2026-10-15 08:34:12 -07:00
2026-10-09 17:34:38 +02:00
2026-10-14 20:47:20 -04:00
2026-10-15 00:07:50 -04:00
2026-10-06 12:50:31 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-14 00:29:11 +05:30
2026-10-14 05:52:49 -07:00
2026-10-15 15:10:20 +02:00
2026-10-15 09:25:53 -07:00
2026-10-08 12:09:24 -07:00
2026-10-08 19:09:50 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 17:59:08 -07:00
2026-10-08 17:22:54 +02:00
2026-10-11 23:38:02 -07:00
2026-10-12 16:55:20 -07:00
2026-10-11 17:21:07 +05:30
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 19:54:07 +02:00
2026-10-09 10:24:04 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:31:52 +02:00
2026-10-10 15:20:13 +02:00
2026-10-14 20:05:34 -04:00
2026-10-05 13:18:19 +05:30
2026-10-14 08:50:46 -07:00
2026-10-09 17:34:38 +02:00
2026-10-03 21:15:17 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-13 03:19:50 +05:30
2026-10-13 22:51:07 -04:00
2026-10-13 22:51:07 -04:00
2026-10-10 15:20:13 +02:00
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-06 15:00:21 -05:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:32:22 +05:30
2026-10-14 00:32:21 +05:30
2026-10-15 00:31:20 -04:00
2026-10-13 00:17:27 -07:00
2026-10-13 01:54:15 -07:00
2026-10-11 19:31:40 -07:00
2026-10-09 02:10:48 -07:00
2026-10-14 20:05:34 -04:00
2026-10-15 00:07:21 -04:00
2026-10-14 20:47:20 -04:00
2026-10-09 07:08:20 -07:00
2026-10-14 20:05:34 -04:00
2026-10-14 20:05:34 -04:00
2026-10-10 15:20:13 +02:00
2026-10-09 02:50:51 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 16:09:31 -07:00
2026-10-03 21:57:13 -04:00
2026-10-10 22:49:21 -07:00
2026-10-13 05:43:48 -07:00
2026-10-06 21:58:29 -07:00
2026-10-08 19:08:58 -07:00
2026-10-06 14:24:39 -07:00
2026-10-13 00:31:15 -07:00
2026-10-15 09:22:21 -07:00
2026-10-15 09:22:21 -07:00
2026-10-11 07:34:28 -07:00
2026-10-13 00:31:15 -07:00
2026-10-14 00:45:08 +05:30
2026-10-15 00:07:21 -04:00
2026-10-15 00:31:20 -04:00
2026-10-07 10:57:34 -07:00
2026-10-08 17:06:02 -07:00
2026-10-14 20:05:34 -04:00
2026-10-13 00:31:15 -07:00
2026-10-14 20:05:34 -04:00
2026-10-15 00:31:20 -04:00
2026-10-14 20:47:20 -04:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:22:21 -07:00
2026-10-15 12:06:34 +05:30
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-03 20:44:07 +05:30
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:46:15 +05:30
2026-10-11 21:41:22 -07:00
2026-10-08 19:28:23 +02:00
2026-10-07 17:21:31 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-12 16:55:20 -07:00
2026-10-12 16:55:20 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-12 16:55:20 -07:00
2026-10-12 19:43:49 +05:30
2026-10-07 11:19:10 +05:30
2026-10-08 19:09:32 -07:00
2026-10-09 17:31:52 +02:00
2026-10-06 15:15:06 -04:00
2026-10-10 17:59:08 -07:00
2026-10-07 11:19:10 +05:30
2026-10-08 17:22:54 +02:00
2026-10-12 16:55:20 -07:00
2026-10-08 12:09:24 -07:00
2026-10-09 17:34:38 +02:00
2026-10-06 03:44:49 -07:00
2026-10-09 17:34:38 +02:00
2026-10-10 15:20:13 +02:00
2026-10-14 23:08:31 -04:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-06 05:44:21 -07:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:31:52 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 12:41:27 -07:00
2026-10-07 10:57:35 -07:00
2026-10-13 00:31:47 -07:00
2026-10-14 05:52:49 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-12 01:15:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-06 14:57:23 -05:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 18:04:50 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 12:42:02 -04:00
2026-10-03 22:32:13 -04:00
2026-10-14 00:32:21 +05:30
2026-10-14 00:32:21 +05:30
2026-10-09 10:24:04 -07:00
2026-10-14 12:42:02 -04:00
2026-10-09 17:31:52 +02:00
2026-10-13 00:29:04 +05:30
2026-10-09 17:34:38 +02:00
2026-10-13 00:29:04 +05:30
2026-10-13 01:35:42 +05:30
2026-10-13 00:29:04 +05:30
2026-10-09 17:34:38 +02:00
2026-10-13 01:35:42 +05:30
2026-10-14 00:32:22 +05:30
2026-10-14 00:32:21 +05:30
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-13 22:08:20 +05:30
2026-10-09 17:34:36 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-07 01:01:14 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:22:03 +02:00
2026-10-10 10:43:32 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-12 13:11:28 -07:00
2026-10-12 13:11:28 -07:00
2026-10-14 00:06:58 +05:30
2026-10-14 00:06:58 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 04:12:02 -07:00
2026-10-10 21:18:25 -07:00
2026-10-06 11:10:43 -07:00
2026-10-10 10:43:32 -07:00
2026-10-10 10:43:32 -07:00
2026-10-08 03:40:04 -07:00
2026-10-07 16:57:01 -07:00
2026-10-12 14:00:32 -07:00
2026-10-07 16:01:10 -07:00
2026-10-12 14:00:32 -07:00
2026-10-09 10:24:04 -07:00
2026-10-05 17:11:30 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 10:24:04 -07:00
2026-10-10 10:43:32 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 21:18:25 -07:00
2026-10-10 15:20:13 +02:00
2026-10-09 10:24:04 -07:00
2026-10-09 17:34:36 +02:00
2026-10-14 00:32:21 +05:30
2026-10-08 17:22:54 +02:00
2026-10-13 01:11:36 +05:30
2026-10-14 00:29:12 +05:30
2026-10-14 23:29:57 +05:30
2026-10-07 10:57:35 -07:00
2026-10-13 01:38:59 +00:00
2026-10-11 19:31:37 -07:00
2026-10-14 12:41:58 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 11:27:35 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 06:49:02 -07:00
2026-10-14 08:50:46 -07:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-14 12:41:58 -07:00
2026-10-13 00:56:48 -07:00
2026-10-06 16:21:16 -07:00
2026-10-10 15:20:13 +02:00
2026-10-05 12:37:47 +05:30
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-10 17:47:35 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-06 14:24:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 05:52:02 -07:00
2026-10-09 02:10:47 -07:00
2026-10-09 07:08:20 -07:00
2026-10-09 10:24:04 -07:00
2026-10-06 14:24:24 -07:00
2026-10-08 19:00:45 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:38:54 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 13:58:16 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:54:07 +02:00
2026-10-09 04:16:17 -07:00
2026-10-15 11:54:53 -07:00
2026-10-08 17:22:54 +02:00
2026-10-15 05:46:17 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-06 14:24:24 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-12 14:00:32 -07:00
2026-10-06 12:08:49 -07:00
2026-10-15 15:27:38 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-06 21:58:27 -07:00
2026-10-09 17:34:38 +02:00
2026-10-10 15:20:14 +02:00
2026-10-09 19:46:19 -07:00
2026-10-13 04:42:06 -07:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-07 10:57:35 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 06:21:10 -07:00
2026-10-09 17:34:38 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:36 +02:00
2026-10-10 17:47:35 -07:00
2026-10-06 06:27:57 -07:00
2026-10-07 04:39:00 -07:00
2026-10-06 03:44:49 -07:00
2026-10-09 17:34:36 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:36 +02:00
2026-10-07 06:15:58 -07:00
2026-10-10 06:49:02 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-11 23:38:02 -07:00
2026-10-08 17:22:54 +02:00
2026-10-06 06:18:39 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 06:22:29 -07:00
2026-10-14 20:05:34 -04:00
2026-10-10 15:20:13 +02:00
2026-10-07 04:39:00 -07:00
2026-10-09 14:22:08 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 14:23:00 -04:00
2026-10-12 03:18:48 -07:00
2026-10-06 04:36:02 -07:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-06 11:15:27 -04:00
2026-10-07 17:13:11 -04:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-13 01:38:59 +00:00
2026-10-14 05:52:49 -07:00
2026-10-09 07:08:21 -07:00
2026-10-09 10:24:04 -07:00
2026-10-09 14:25:07 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:38:54 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 14:25:07 -07:00
2026-10-09 14:25:07 -07:00
2026-10-08 17:22:54 +02:00
2026-10-04 00:08:20 -07:00
2026-10-09 17:34:36 +02:00
2026-10-03 19:51:54 +05:30
2026-10-09 10:24:04 -07:00
2026-10-12 21:01:49 -07:00
2026-10-09 17:31:52 +02:00
2026-10-14 20:38:07 -04:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:32:22 +05:30
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-11 23:38:02 -07:00
2026-10-12 21:34:13 -04:00
2026-10-09 17:34:38 +02:00