kshitijk4poor
e63786fc23
fix(agent): break immediately on interpreter shutdown in conversation loop
...
When the Python interpreter begins teardown (user closes hermes, SIGTERM,
OOM-kill), every executor-backed operation raises 'cannot schedule new
futures after interpreter shutdown'. The outer except handler in
run_conversation caught this error but did not recognize it as fatal —
it kept retrying (API calls #4 , #5 , #6 ) until max_iterations, each time
hitting the same dead executor and printing another traceback.
The fix adds an early check: if sys.is_finalizing() or the error matches
the 'cannot schedule new futures' pattern, break immediately with a clean
interpreter_shutdown exit reason instead of retrying. The codebase already
had this pattern in cron/scheduler.py and agent/tool_executor.py — the
conversation loop just wasn't using it.
2026-08-24 04:14:26 +05:30
..
2026-08-15 00:33:01 -07:00
2026-08-15 13:28:14 -07:00
2026-08-23 02:14:35 -07:00
2026-08-21 15:02:29 -07:00
2026-08-21 00:24:32 -07:00
2026-08-20 12:29:11 -05:00
2026-08-23 02:54:30 -07:00
2026-08-21 16:12:57 +05:30
2026-08-21 15:02:29 -07:00
2026-08-10 10:45:44 -07:00
2026-08-12 19:13:32 -07:00
2026-08-20 00:03:50 +05:30
2026-08-21 17:24:22 +05:30
2026-08-20 03:15:14 +05:30
2026-08-15 03:16:21 -07:00
2026-08-21 21:53:11 +05:30
2026-08-23 15:03:29 +05:30
2026-08-12 18:41:59 -07:00
2026-08-23 13:34:32 +05:30
2026-08-24 04:14:26 +05:30
2026-08-16 06:31:46 -07:00
2026-08-14 21:54:56 -07:00
2026-08-22 04:20:48 +05:30
2026-08-16 22:06:41 -07:00
2026-08-16 22:06:41 -07:00
2026-08-13 13:53:39 +05:30
2026-08-13 09:34:36 -07:00
2026-08-16 22:06:08 -07:00
2026-08-21 21:43:39 +05:30
2026-08-21 15:24:03 -07:00
2026-08-12 11:04:45 -07:00
2026-08-16 22:07:52 -07:00
2026-08-19 16:10:01 -07:00
2026-08-14 03:31:22 +05:30
2026-08-14 02:04:24 +05:30
2026-08-19 22:41:05 -07:00
2026-08-13 23:43:15 +05:30
2026-08-13 23:15:25 +05:30
2026-08-15 01:04:19 -07:00
2026-08-15 01:04:19 -07:00
2026-08-13 23:10:16 +05:30
2026-08-13 23:10:16 +05:30
2026-08-23 02:14:35 -07:00
2026-08-14 03:31:22 +05:30
2026-08-21 17:24:22 +05:30
2026-08-12 16:25:20 -07:00
2026-08-12 18:38:25 -07:00
2026-08-19 22:59:17 -07:00
2026-08-15 11:09:56 +05:30
2026-08-21 12:23:47 +05:30
2026-08-21 14:58:37 -07:00
2026-08-20 23:12:38 -07:00
2026-08-13 23:10:16 +05:30
2026-08-19 08:52:01 -07:00
2026-08-19 08:52:03 -07:00
2026-08-16 01:55:51 -07:00
2026-08-21 13:21:46 +10:00
2026-08-15 23:03:52 -07:00
2026-08-19 19:41:42 -07:00
2026-08-17 14:06:16 -07:00
2026-08-16 22:07:43 -07:00
2026-08-19 22:59:17 -07:00
2026-08-15 00:33:01 -07:00
2026-08-16 22:10:02 -07:00
2026-08-19 16:31:16 -07:00
2026-08-21 15:23:51 -07:00
2026-08-20 00:16:22 -07:00
2026-08-14 21:41:26 -07:00
2026-08-12 19:01:30 -07:00
2026-08-12 19:13:32 -07:00
2026-08-12 19:13:32 -07:00
2026-08-21 15:23:51 -07:00
2026-08-23 13:34:32 +05:30
2026-08-23 02:14:35 -07:00
2026-08-16 00:14:58 -07:00
2026-08-12 01:15:25 -07:00
2026-08-22 23:25:43 -07:00
2026-08-19 16:10:01 -07:00
2026-08-19 15:15:27 -07:00
2026-08-20 00:17:25 -07:00