fix(server): report delegated tasks stopped by a server restart #13345
Closedsaphid(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/13345/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/server/src/serverRuntimeStartup.ts line 521OutdatedResolvedby saphid(GitHub profile, opens in a new tab)@@ -509,4 +509,14 @@509509 ),510510 ),511511 ),512- recover: runStartupPhase("orchestration-v2.recovery", providerRuntimeRecovery.recover),512+ recover: runStartupPhase(513+ "orchestration-v2.recovery",514+ providerRuntimeRecovery.recover.pipe(515+ // Report delegated tasks only once recovery has cancelled516+ // interrupted work, leaving a child with a pending restart517+ // continuation to that continuation.518+ Effect.tap(() =>519+ ThreadManagement.ThreadManagementService.pipe(520+ Effect.flatMap((threads) =>521+ threads.recoverDelegatedTaskReports((run) =>522+ providerRuntimeRecovery.isRestartContinuationPending(run.id),
juliusmarminge added labelsmacroscope-review
juliusmarminge closed this
juliusmarminge added labelstriage:keep-open
juliusmarminge reopened this
saphid(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed