J
e3b4bc07f9
fix(server): return 500 for transient DB errors in daemon task lookup
...
requireDaemonTaskAccess used to turn any GetAgentTask error into
404 "task not found", including transient DB connection / pool errors.
Combined with PR #2107 — which added 404+"task not found" as a daemon
cancellation trigger — that means a single DB hiccup could kill an
in-flight agent run.
Distinguish pgx.ErrNoRows (real "task gone", 404) from other errors
(transient, 500 + warn log) using the existing isNotFound helper.
Tests cover both paths via the mockDB pattern already used by
TestFindOrCreateUserGating.
Co-authored-by: multica-agent <github@multica.ai >
2026-05-06 15:49:59 +08:00
..
2026-04-20 15:56:16 +08:00
2026-04-28 19:21:13 +08:00
2026-05-03 20:02:40 +02:00
2026-04-21 14:42:52 +08:00
2026-04-28 15:14:07 +08:00
2026-04-28 14:50:28 +08:00
2026-05-06 13:22:53 +08:00
2026-04-29 15:54:24 +08:00
2026-04-22 16:58:42 +08:00
2026-04-23 01:51:59 +08:00
2026-05-06 15:49:59 +08:00
2026-04-28 16:07:24 +08:00
2026-05-06 15:49:59 +08:00
2026-04-23 10:35:55 +08:00
2026-04-28 14:50:28 +08:00
2026-05-03 10:49:02 +08:00
2026-04-29 15:54:24 +08:00
2026-05-06 14:31:33 +08:00
2026-05-06 14:31:33 +08:00
2026-04-28 14:50:28 +08:00
2026-05-04 21:24:56 +08:00
2026-05-04 21:24:56 +08:00
2026-04-30 15:35:12 +08:00
2026-05-06 09:00:11 +08:00
2026-04-27 14:23:42 +08:00
2026-04-28 14:50:28 +08:00
2026-04-29 22:51:29 +02:00
2026-04-21 20:32:33 +08:00
2026-04-30 16:05:53 +08:00
2026-04-29 17:07:54 +08:00
2026-04-28 14:50:28 +08:00
2026-05-06 14:09:35 +08:00
2026-04-30 14:00:43 +08:00
2026-05-06 14:09:35 +08:00
2026-04-28 14:50:28 +08:00
2026-05-06 14:31:33 +08:00
2026-05-06 14:31:33 +08:00
2026-04-23 17:07:34 +08:00
2026-04-25 02:06:00 +08:00
2026-04-23 17:07:34 +08:00
2026-04-28 14:50:28 +08:00
2026-05-03 11:13:34 +08:00
2026-05-03 11:13:34 +08:00
2026-05-03 11:13:34 +08:00
2026-05-03 11:13:34 +08:00
2026-04-28 14:50:28 +08:00
2026-05-06 13:00:11 +08:00
2026-05-06 13:00:11 +08:00
2026-05-06 13:00:11 +08:00
2026-05-06 13:00:11 +08:00
2026-04-28 19:21:13 +08:00
2026-04-30 22:34:24 +02:00
2026-04-25 01:40:23 +08:00
2026-04-30 22:34:24 +02:00
2026-04-17 16:26:00 +08:00
2026-04-17 16:26:00 +08:00
2026-04-22 13:08:37 +08:00
2026-04-29 15:54:24 +08:00
2026-04-30 16:05:53 +08:00
2026-04-24 14:29:39 +08:00
2026-04-30 16:05:53 +08:00