mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 19:00:22 +00:00
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:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user