Juan Denis and Claude Opus 4.8
6f99bef3a9
refactor(jobs): dispatch workflow events via a workflow.dispatch job (no thread)
...
WorkflowEventBus.emit no longer spawns a per-event daemon thread to match +
trigger workflows. It now enqueues a single 'workflow.dispatch' job; the new
WorkflowEventBus.dispatch_event handler does the matching (active event-trigger
workflows whose eventType matches, honoring the 60s cooldown) and enqueues a
workflow.execute job per match. emit is a non-blocking enqueue, best-effort
(never raises into the caller), and the whole event -> dispatch -> execute path
now flows through the bus (observable, persistent across restart). Removes the
last ad-hoc thread on the workflow path.
Registered alongside workflow.execute in WorkflowEngine.register_jobs.
tests: dispatch handler registered; emit enqueues a dispatch job (not a thread);
dispatch fans out only to the matching event workflow.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-21 22:01:38 -04:00
..
2026-01-17 04:22:12 -05:00
2026-06-15 00:52:30 -04:00
2026-03-23 01:46:41 -04:00
2026-06-12 18:35:35 -04:00
2026-06-12 18:35:52 -04:00
2026-06-01 02:39:05 -04:00
2026-06-01 02:39:05 -04:00
2026-06-01 02:39:05 -04:00
2026-01-22 18:11:22 -05:00
2026-03-04 01:53:46 -05:00
2026-03-04 01:53:46 -05:00
2026-06-21 20:19:57 -04:00
2026-06-21 21:50:27 -04:00
2026-03-23 01:58:28 -04:00
2026-03-23 02:27:52 -04:00
2026-06-15 10:47:59 -04:00
2026-06-21 19:57:02 -04:00
2026-05-05 14:03:31 -04:00
2026-06-19 10:13:50 -04:00
2026-06-19 09:54:40 -04:00
2026-06-01 02:39:05 -04:00
2026-03-23 01:58:28 -04:00
2026-06-15 00:01:41 -04:00
2026-05-31 22:39:57 -04:00
2026-06-19 03:12:07 -04:00
2026-06-21 21:01:38 -04:00
2026-06-21 20:19:57 -04:00
2026-03-04 00:02:52 -05:00
2026-03-23 01:58:28 -04:00
2026-03-04 02:34:49 -05:00
2026-06-19 16:34:14 -04:00
2026-06-19 16:34:14 -04:00
2026-06-18 22:16:00 -04:00
2026-03-04 02:34:49 -05:00
2026-06-15 09:19:56 -04:00
2026-03-04 02:34:49 -05:00
2026-01-18 00:40:41 -05:00
2026-01-28 21:12:55 -05:00
2026-06-20 22:43:38 -04:00
2026-06-21 02:11:47 -04:00
2026-06-20 22:43:38 -04:00
2026-06-21 20:19:57 -04:00
2026-06-21 02:11:47 -04:00
2026-02-10 08:09:38 -05:00
2026-03-23 01:58:28 -04:00
2026-06-21 02:11:47 -04:00
2026-03-23 01:58:28 -04:00
2026-05-03 06:28:21 -04:00
2026-06-01 02:27:52 -04:00
2026-01-21 21:31:57 -05:00
2026-06-19 10:08:58 -04:00
2026-06-19 01:33:45 -04:00
2026-06-19 09:22:18 -04:00
2026-03-04 02:34:49 -05:00
2026-06-21 02:11:47 -04:00
2026-06-20 22:43:38 -04:00
2026-01-22 08:51:31 -05:00
2026-06-06 23:29:22 -04:00
2026-06-21 20:19:57 -04:00
2026-03-23 02:19:33 -04:00
2026-06-19 16:13:06 -04:00
2026-01-22 18:11:22 -05:00
2026-06-21 19:57:02 -04:00
2026-03-04 01:53:46 -05:00
2026-05-31 16:08:32 -04:00
2026-06-19 01:33:45 -04:00
2026-03-04 02:34:49 -05:00
2026-03-04 00:02:52 -05:00
2026-06-01 02:39:05 -04:00
2026-06-15 09:19:56 -04:00
2026-01-19 02:35:18 -05:00
2026-06-18 22:16:00 -04:00
2026-03-23 01:58:28 -04:00
2026-06-15 19:43:00 -04:00
2026-05-01 05:52:11 -04:00
2026-05-01 01:54:17 -04:00
2026-06-21 02:11:47 -04:00
2026-05-01 03:37:33 -04:00
2026-05-01 04:33:08 -04:00
2026-05-01 04:42:30 -04:00
2026-05-01 04:33:08 -04:00
2026-05-03 07:07:57 -04:00
2026-06-05 23:04:06 -04:00
2026-01-25 20:01:07 -05:00
2026-03-04 02:34:49 -05:00
2026-06-20 22:43:38 -04:00
2026-06-21 01:54:51 -04:00
2026-01-22 08:51:31 -05:00
2026-06-12 18:35:35 -04:00
2026-06-19 01:34:02 -04:00
2026-06-20 22:43:38 -04:00
2026-06-15 19:55:57 -04:00
2026-06-21 00:20:10 -04:00
2026-03-04 02:34:49 -05:00
2026-06-19 16:34:14 -04:00
2026-03-04 01:37:22 -05:00
2026-06-20 22:43:38 -04:00
2026-06-21 02:11:47 -04:00
2026-06-21 02:11:47 -04:00
2026-06-21 20:19:57 -04:00
2026-06-06 23:29:22 -04:00
2026-01-22 16:44:06 -05:00
2026-01-18 01:03:56 -05:00
2026-06-15 23:28:12 -04:00
2026-06-15 23:28:12 -04:00
2026-06-15 23:20:00 -04:00
2026-06-20 22:43:38 -04:00
2026-01-17 13:37:40 -05:00
2026-06-19 14:02:24 -04:00
2026-06-20 22:43:38 -04:00
2026-05-31 22:39:57 -04:00
2026-01-27 19:35:21 -05:00
2026-06-15 21:59:59 -04:00
2026-06-21 22:01:38 -04:00
2026-01-28 21:12:55 -05:00
2026-06-21 18:32:25 -04:00
2026-06-21 02:11:47 -04:00
2026-06-01 03:04:03 -04:00
2026-06-01 01:57:43 -04:00
2026-06-01 02:27:52 -04:00
2026-06-01 01:45:20 -04:00