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

@@ -224,10 +224,10 @@ export function registerStatusHealthSessionsCommands(program: Command) {
.command("tasks")
.description("Inspect durable background task state")
.option("--json", "Output as JSON", false)
.option("--runtime <name>", "Filter by runtime (subagent, acp, cli)")
.option("--runtime <name>", "Filter by kind (subagent, acp, cron, cli)")
.option(
"--status <name>",
"Filter by status (accepted, running, done, failed, timed_out, cancelled, lost)",
"Filter by status (queued, running, succeeded, failed, timed_out, cancelled, lost)",
)
.action(async (opts) => {
await runCommandWithRuntime(defaultRuntime, async () => {
@@ -247,10 +247,10 @@ export function registerStatusHealthSessionsCommands(program: Command) {
.command("list")
.description("List tracked background tasks")
.option("--json", "Output as JSON", false)
.option("--runtime <name>", "Filter by runtime (subagent, acp, cli)")
.option("--runtime <name>", "Filter by kind (subagent, acp, cron, cli)")
.option(
"--status <name>",
"Filter by status (accepted, running, done, failed, timed_out, cancelled, lost)",
"Filter by status (queued, running, succeeded, failed, timed_out, cancelled, lost)",
)
.action(async (opts, command) => {
const parentOpts = command.parent?.opts() as