mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-21 16:27:18 +02:00
Handle durable cancellation before workspace failure recovery
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
05d8b40a06
commit
4597967f89
1 file changed
+5
@@ -24770,6 +24770,11 @@ export function heartbeatService(
|
||||
await completeWorkspace();
|
||||
}
|
||||
} catch (adapterErr) {
|
||||
if (adapterErr instanceof NativeCancellationPendingRecoveryError) {
|
||||
// Durable cancellation is settled by the outer recovery handler;
|
||||
// it does not imply a failed workspace or a persisted run result.
|
||||
throw adapterErr;
|
||||
}
|
||||
if (adapterErr instanceof NativeWorkspaceFinalizationBusyError
|
||||
|| adapterErr instanceof NativeWorkspaceFinalizationOwnershipLostError) {
|
||||
nativeWorkspaceFinalizeScheduled = true;
|
||||
|
||||
Reference in new issue
Block a user