refactor(tasks): unify the shared task run registry (#57324)

* refactor(tasks): simplify shared task run registry

* refactor(tasks): remove legacy task registry aliases

* fix(cron): normalize timeout task status and harden ledger writes

* fix(cron): keep manual runs resilient to ledger failures
This commit is contained in:
Vincent Koc
2026-03-29 16:28:17 -07:00
committed by GitHub
parent e4466c72a2
commit 53bcd5769e
19 changed files with 569 additions and 159 deletions

View File

@@ -846,7 +846,6 @@ describe("gateway agent handler", () => {
);
expect(findTaskByRunId("task-registry-agent-run")).toMatchObject({
source: "background_cli",
runtime: "cli",
childSessionKey: "agent:main:main",
status: "running",

View File

@@ -191,8 +191,8 @@ function dispatchAgentRunFromGateway(params: {
if (params.ingressOpts.sessionKey?.trim()) {
try {
createTaskRecord({
source: "background_cli",
runtime: "cli",
sourceId: params.runId,
requesterSessionKey: params.ingressOpts.sessionKey,
requesterOrigin: normalizeDeliveryContext({
channel: params.ingressOpts.channel,
@@ -202,7 +202,6 @@ function dispatchAgentRunFromGateway(params: {
}),
childSessionKey: params.ingressOpts.sessionKey,
runId: params.runId,
bindingTargetKind: "session",
task: params.ingressOpts.message,
status: "running",
deliveryStatus: "not_applicable",