Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): scheduled runs record how their turn ended #23131

Closedvoida6(GitHub profile, opens in a new tab)wants to merge 29 commits intomain fromrefs/pull/23131/headopened View on GitHub

Showing 13 changed files with 19 additions and 15 deletions (loading 10).

x
0 of 13 viewed, 13 left
1 addition and 0 deletionsapps/server/src/mcp/OrchestratorMcpService.tsModified
View file
@@ -272,6 +272,7 @@
schedule: task.schedule,
nextRunAt: task.nextRunAt,
lastRunStatus: task.lastRunStatus,
+ ...(task.lastRunError === null ? {} : { lastRunError: task.lastRunError }),
...(task.webhook?.url == null || !mayRun || task.blockedByPolicy !== undefined
? {}
: { webhookUrl: task.webhook.url }),
1 addition and 1 deletionapps/server/src/orchestration-v2/ClaudeAutomaticDelivery.integration.test.tsModified
View file
@@ -323,7 +323,7 @@
}),
const ran = yield* service.runNow({ id: task.id });
- assert.equal(ran.task.lastRunStatus, "succeeded");
+ assert.equal(ran.task.lastRunStatus, "running");
}).pipe(
Effect.provide(
ScheduledTaskService.layer.pipe(
17 additions and 14 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -497,6 +497,10 @@
readonly eventType?: OrchestrationV2DomainEvent["type"];
}) => Stream.Stream<OrchestrationV2StoredEvent, OrchestratorV2Error>;
readonly streamDomainEvents: Stream.Stream<OrchestrationV2DomainEvent, OrchestratorV2Error>;
+ readonly openDomainEventStream: Effect.Effect<