Garry Tan
a41dfa5ff6
fix(core): drain fire-and-forget sinks before disconnect via a background-work registry ( #1762 )
...
New src/core/background-work.ts registry (Map<name,drainer>, ordered drain,
awaited abort). facts-queue (order 0, abort=shutdown), last-retrieved (1), and
eval-capture (3, now self-tracked) register as sinks. Both CLI exit paths
(op-dispatch finally + handleCliOnly finally) drain the registry before
engine.disconnect() so a PGLite db.close() can't race in-flight work into the
re-pump busy-loop that pinned the single-writer lock. Op-dispatch error path
converts process.exit(1) to exitCode+return so the finally still drains.
2026-06-03 01:29:34 -07:00
..
2026-06-01 21:54:13 -07:00
2026-05-22 13:38:07 -07:00
2026-06-01 23:03:09 -07:00
2026-05-24 21:50:08 -07:00
2026-05-30 09:14:14 -07:00
2026-06-01 22:13:19 -07:00
2026-05-24 22:56:21 -07:00
2026-05-24 09:30:57 -07:00
2026-04-29 23:46:36 -07:00
2026-05-14 19:13:14 -07:00
2026-06-01 21:54:13 -07:00
2026-05-10 20:06:31 -07:00
2026-06-01 22:13:19 -07:00
2026-05-22 11:53:11 -07:00
2026-05-22 13:38:07 -07:00
2026-06-01 22:13:19 -07:00
2026-05-22 13:38:07 -07:00
2026-05-22 22:37:15 -07:00
2026-06-01 20:16:37 -07:00
2026-05-27 07:16:30 -07:00
2026-05-10 06:34:40 -07:00
2026-05-27 08:27:05 -07:00
2026-06-03 01:29:34 -07:00
2026-05-24 22:56:21 -07:00
2026-06-01 22:01:14 -07:00
2026-05-27 07:01:28 -07:00
2026-05-11 19:25:48 -07:00
2026-05-26 17:31:48 -07:00
2026-05-26 18:59:17 -07:00
2026-05-17 08:00:29 -07:00
2026-05-30 14:56:26 -07:00
2026-06-01 23:03:09 -07:00
2026-05-20 13:55:12 -07:00
2026-05-31 08:20:25 -07:00
2026-05-19 18:12:01 -07:00
2026-04-22 01:34:22 -07:00
2026-05-10 06:34:40 -07:00
2026-06-01 21:54:13 -07:00
2026-05-27 07:16:30 -07:00
2026-05-02 08:41:11 -07:00
2026-05-22 22:16:25 -07:00
2026-05-20 13:55:12 -07:00
2026-05-23 10:01:08 -07:00
2026-05-23 08:49:28 -07:00
2026-05-22 11:53:11 -07:00
2026-05-26 23:15:44 -07:00
2026-05-09 20:46:34 -07:00
2026-05-19 17:14:53 -07:00
2026-06-03 01:29:34 -07:00
2026-04-14 19:41:34 -10:00
2026-05-23 08:49:28 -07:00
2026-05-02 22:01:05 -07:00
2026-05-26 18:59:17 -07:00
2026-05-24 10:49:56 -07:00
2026-05-25 14:56:38 -07:00
2026-05-25 20:00:03 -07:00
2026-05-11 22:54:35 -07:00
2026-05-25 14:20:19 -07:00
2026-05-23 10:01:08 -07:00
2026-05-10 18:59:11 -07:00
2026-06-02 16:33:06 -07:00
2026-06-01 19:09:15 -07:00
2026-05-08 13:25:48 -07:00
2026-05-25 12:48:55 -07:00
2026-05-23 10:57:32 -07:00
2026-05-24 10:49:56 -07:00
2026-06-01 23:03:09 -07:00
2026-05-11 21:49:57 -07:00
2026-05-23 08:49:28 -07:00
2026-05-23 08:49:28 -07:00
2026-06-01 22:13:19 -07:00
2026-04-14 19:41:34 -10:00
2026-05-26 16:58:18 -07:00
2026-05-28 19:04:48 -07:00
2026-05-03 20:41:39 -07:00
2026-04-29 22:21:07 -07:00
2026-06-02 16:33:06 -07:00
2026-05-25 14:56:38 -07:00
2026-05-20 13:55:12 -07:00
2026-05-07 21:52:58 -07:00
2026-05-23 10:21:59 -07:00
2026-05-25 14:43:12 -07:00
2026-05-24 10:49:56 -07:00
2026-05-30 10:30:56 -07:00
2026-05-23 08:49:28 -07:00
2026-05-26 18:29:03 -07:00
2026-05-15 18:54:36 -07:00
2026-05-30 10:30:56 -07:00
2026-05-27 08:50:53 -07:00
2026-04-11 00:01:09 -10:00
2026-06-01 23:03:09 -07:00
2026-05-11 19:25:48 -07:00
2026-04-25 12:25:34 -07:00
2026-05-14 19:13:14 -07:00
2026-05-01 09:02:43 -07:00
2026-06-03 01:29:34 -07:00
2026-05-26 18:59:17 -07:00
2026-05-26 18:59:17 -07:00
2026-05-26 18:59:17 -07:00
2026-05-30 11:21:56 -07:00
2026-04-29 23:46:36 -07:00
2026-05-23 10:21:59 -07:00
2026-05-11 19:25:48 -07:00
2026-04-22 01:34:22 -07:00
2026-05-20 13:55:12 -07:00
2026-04-29 23:46:36 -07:00
2026-05-21 09:26:37 -07:00
2026-05-30 10:56:46 -07:00
2026-05-17 08:00:29 -07:00
2026-05-30 12:34:43 -07:00
2026-05-14 20:51:11 -07:00
2026-06-01 23:03:09 -07:00
2026-04-05 12:48:10 -07:00
2026-06-03 01:29:34 -07:00
2026-05-21 18:57:05 -07:00
2026-06-02 16:33:06 -07:00
2026-05-27 07:01:28 -07:00
2026-05-09 19:47:56 -07:00
2026-06-02 16:33:06 -07:00
2026-05-26 18:59:17 -07:00
2026-05-27 07:16:30 -07:00
2026-06-01 21:54:13 -07:00
2026-05-25 20:00:03 -07:00
2026-05-10 13:33:05 -07:00
2026-05-25 09:57:30 -07:00
2026-05-27 06:30:46 -07:00
2026-05-30 13:11:25 -07:00
2026-06-02 16:33:06 -07:00
2026-05-06 21:14:34 -07:00
2026-05-23 08:49:28 -07:00
2026-05-23 10:21:59 -07:00
2026-06-01 23:03:09 -07:00
2026-04-22 01:34:22 -07:00
2026-06-02 16:33:06 -07:00
2026-05-26 17:31:48 -07:00
2026-06-01 23:03:09 -07:00
2026-05-09 20:46:34 -07:00
2026-05-25 14:43:12 -07:00
2026-05-23 10:57:32 -07:00
2026-06-01 23:03:09 -07:00
2026-05-11 23:20:17 -07:00
2026-05-22 11:53:11 -07:00
2026-05-23 08:49:28 -07:00
2026-05-07 22:56:22 -07:00
2026-05-18 12:53:01 -07:00
2026-05-23 10:01:08 -07:00
2026-05-10 13:20:07 -07:00
2026-05-25 19:43:20 -07:00
2026-05-25 15:10:23 -07:00
2026-06-01 22:01:14 -07:00
2026-06-01 22:28:20 -07:00
2026-05-25 12:48:55 -07:00
2026-06-02 16:33:06 -07:00
2026-05-22 13:38:07 -07:00
2026-04-27 22:59:08 -07:00
2026-05-22 21:18:09 -07:00
2026-05-20 13:55:12 -07:00
2026-05-30 13:11:25 -07:00
2026-05-20 13:55:12 -07:00
2026-05-20 13:55:12 -07:00
2026-04-23 19:34:27 -07:00
2026-05-25 20:00:03 -07:00
2026-05-14 20:51:11 -07:00
2026-05-23 10:21:59 -07:00
2026-05-30 10:56:46 -07:00
2026-05-22 21:04:30 -07:00
2026-05-25 19:53:59 -07:00
2026-05-30 10:56:46 -07:00
2026-05-30 14:58:40 -07:00
2026-05-19 17:14:53 -07:00
2026-05-09 22:58:19 -07:00
2026-05-19 17:14:53 -07:00
2026-04-29 22:21:07 -07:00
2026-04-09 10:17:13 -07:00
2026-05-08 13:25:48 -07:00
2026-05-26 18:29:03 -07:00
2026-06-01 23:03:09 -07:00
2026-05-30 11:21:56 -07:00
2026-05-20 09:19:18 -07:00
2026-05-25 14:56:38 -07:00
2026-05-10 18:59:11 -07:00
2026-05-25 14:43:12 -07:00
2026-05-23 10:21:59 -07:00
2026-05-22 22:37:15 -07:00
2026-05-17 18:52:38 -07:00
2026-04-14 19:41:34 -10:00
2026-05-07 21:52:58 -07:00
2026-06-01 23:03:09 -07:00
2026-05-08 13:25:48 -07:00
2026-05-08 13:25:48 -07:00
2026-05-06 21:14:34 -07:00
2026-06-01 22:28:20 -07:00
2026-05-08 13:25:48 -07:00
2026-05-26 18:29:03 -07:00
2026-05-30 09:14:14 -07:00
2026-04-09 10:17:13 -07:00
2026-05-06 11:54:06 -07:00