Cyber-Yichen
a2fea79de6
fix(cron): isolate multiplex profile failures per profile ( #74878 )
...
One profile's broken cron store no longer takes the whole multiplex ticker
down with it:
- startup recovery loop: a per-profile exception (e.g. an unreadable
executions.db raising sqlite3.DatabaseError) was uncaught and killed the
ticker thread before its first tick — no profile ever fired.
- tick loop: only CronTickYielded was caught per profile; any other
exception escaped to the cycle-wide handler, skipping every remaining
profile that cycle and marking all of them failed.
Both loops now catch per profile, record the failure into THAT profile's
ticker_last_error (`hermes cron status`), and keep ticking the siblings.
The existing CronTickYielded/_profile_errors semantics and the #87644
EMFILE reclaim/backoff are preserved (backoff is applied once per cycle
from the worst per-profile failure).
Salvaged from PR #70747 (@Cyber-Yichen); the recovery test's real
sqlite3.OperationalError shape is from PR #74888 (@OYLFLMH). Same class
also reported in PR #74952 (@webtecnica).
Co-authored-by: OYLFLMH <95945448+OYLFLMH@users.noreply.github.com >
Co-authored-by: webtecnica <75556242+webtecnica@users.noreply.github.com >
2026-09-02 06:27:24 -07:00
..
2026-08-23 17:45:47 -05:00
2026-08-08 04:19:49 -07:00
2026-09-02 05:33:22 -07:00
2026-09-02 00:44:19 -07:00
2026-09-02 05:34:35 -07:00
2026-08-26 00:54:36 -07:00
2026-08-24 15:54:23 +05:30
2026-09-02 06:27:24 -07:00
2026-07-29 13:39:40 -07:00
2026-08-26 07:28:10 -07:00
2026-08-01 10:52:34 -07:00
2026-08-24 21:21:34 -07:00
2026-08-31 01:04:11 -07:00
2026-09-02 06:19:03 -07:00
2026-09-02 06:19:08 -07:00
2026-09-02 18:24:54 +05:30
2026-08-13 23:43:15 +05:30
2026-07-01 03:16:13 -07:00
2026-08-08 18:11:02 -07:00
2026-09-01 14:11:55 +05:30
2026-08-28 11:54:33 +05:30
2026-09-02 01:15:58 -07:00
2026-08-29 18:01:25 -07:00
2026-08-20 19:56:01 -07:00
2026-09-02 16:57:21 +05:30
2026-09-02 00:06:01 -07:00
2026-08-12 19:13:32 -07:00
2026-08-30 04:53:39 -07:00
2026-09-02 16:57:21 +05:30
2026-09-02 06:18:55 -07:00
2026-09-02 06:18:55 -07:00
2026-09-01 10:56:49 -07:00
2026-09-01 09:28:01 -07:00
2026-08-24 15:37:22 +05:30
2026-08-31 09:56:43 -07:00
2026-04-21 01:56:35 -07:00
2026-08-31 12:36:33 -07:00
2026-08-12 17:25:30 -05:00
2026-08-24 03:21:07 -07:00
2026-08-24 03:21:07 -07:00
2026-08-01 15:05:05 +05:30
2026-07-29 13:10:23 -07:00
2026-08-23 17:01:31 -07:00
2026-08-31 20:43:36 -05:00
2026-08-30 01:20:27 -07:00
2026-08-30 01:20:27 -07:00
2026-07-29 13:10:23 -07:00
2026-07-23 11:44:43 -07:00
2026-08-20 04:54:14 -07:00
2026-09-01 08:36:03 -07:00
2026-08-26 18:23:33 -07:00
2026-09-02 00:44:19 -07:00
2026-08-26 18:23:33 -07:00
2026-08-31 10:05:13 -07:00
2026-08-28 05:45:00 -07:00
2026-08-28 12:20:40 -07:00
2026-09-02 06:19:03 -07:00
2026-09-01 00:35:29 +05:30
2026-07-29 13:10:23 -07:00
2026-08-31 09:56:43 -07:00
2026-08-27 13:48:51 -07:00
2026-08-25 10:54:42 +10:00
2026-08-31 07:28:22 -07:00
2026-08-31 09:56:04 -07:00
2026-09-02 05:59:24 -07:00
2026-08-29 18:34:35 -07:00
2026-08-31 10:00:38 -07:00
2026-06-30 20:11:01 +07:00
2026-09-01 09:28:01 -07:00
2026-09-01 09:28:01 -07:00
2026-08-23 18:27:21 -07:00
2026-09-01 09:28:01 -07:00
2026-09-01 09:28:01 -07:00
2026-08-31 10:00:55 -07:00
2026-08-31 10:53:18 -07:00
2026-08-31 10:53:18 -07:00
2026-09-01 11:25:10 -07:00
2026-08-28 12:36:15 -07:00
2026-08-27 07:52:26 -07:00
2026-08-27 07:52:26 -07:00
2026-07-29 19:53:17 -07:00
2026-09-01 10:52:42 -07:00
2026-08-23 13:34:32 +05:30
2026-07-29 13:10:23 -07:00
2026-08-03 17:38:13 +05:30
2026-03-24 08:19:23 -07:00
2026-08-29 18:23:07 -07:00
2026-08-31 12:22:17 -07:00
2026-07-29 13:10:23 -07:00
2026-08-20 11:37:01 +05:30
2026-08-14 21:45:08 -07:00
2026-08-31 10:03:34 -07:00
2026-08-13 11:49:14 -07:00
2026-08-17 15:12:53 -05:00
2026-07-29 19:48:37 -07:00
2026-08-12 18:55:14 -07:00
2026-08-10 17:02:56 -07:00
2026-08-31 05:56:18 -07:00
2026-08-31 11:23:48 -07:00
2026-08-31 09:56:04 -07:00
2026-08-25 23:15:49 -07:00
2026-08-31 09:56:54 -07:00
2026-08-21 21:53:11 +05:30
2026-03-19 15:16:35 +01:00
2026-09-02 04:15:02 -07:00
2026-08-31 09:56:43 -07:00
2026-09-02 16:57:21 +05:30
2026-08-22 04:02:29 +05:30
2026-08-22 14:33:20 +05:30
2026-08-23 18:25:12 -07:00
2026-08-23 20:01:41 -07:00
2026-08-23 18:25:12 -07:00
2026-08-27 07:52:26 -07:00
2026-07-29 13:10:23 -07:00
2026-08-31 09:58:40 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 18:23:07 -07:00
2026-05-28 22:26:25 -07:00
2026-07-29 13:10:23 -07:00
2026-08-27 11:26:57 +05:30
2026-09-02 06:17:47 -07:00
2026-08-24 04:01:53 -07:00
2026-08-09 13:43:14 -07:00
2026-08-12 20:02:07 -07:00
2026-08-23 17:43:39 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-06-07 17:49:38 -07:00
2026-08-31 09:56:43 -07:00