fix: route code queue race self test to manager

This commit is contained in:
Codex
2026-05-17 11:54:06 +00:00
parent 00e5766794
commit 4da70ca671
@@ -393,6 +393,7 @@ function codeQueueK3sServiceIdForRequest(method: string, targetPath: string): st
function codeQueueMasterControlPath(method: string, targetPath: string): boolean {
const normalizedMethod = method.toUpperCase();
if (targetPath === "/" || targetPath === "/health" || targetPath === "/live" || targetPath === "/logs") return true;
if (targetPath === "/api/queue-claim-move/self-test") return true;
if (targetPath === "/api/queues" || targetPath === "/api/queues/merge") return true;
if (/^\/api\/queues\/[^/]+(?:\/merge)?$/u.test(targetPath)) return true;
if (targetPath === "/api/tasks" || targetPath === "/api/tasks/batch" || targetPath === "/api/tasks/overview" || targetPath === "/api/tasks/stats" || targetPath === "/api/tasks/read-all") return true;