recoverSpeculation
Purpose and behavior
Section titled “Purpose and behavior”Release the ownership of a durable race whose coordinator has stopped, provided its saved object is still at the given revision; otherwise rejects with TransportConflict. It stops and deletes nothing: the next speculate() call stops registered resources and needs resume: retry-incomplete to replay interrupted candidates.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”optionsRequiredSpeculationRecoveryOptionsAbandoned race identity, inspected revision and explicit confirmation that its coordinator has stopped.options.runIdRequiredstringrunId of the race to release.options.revisionRequiredstringRevision of the saved object as you read it; if it changed since, recovery rejects with TransportConflict.options.coordinatorStoppedRequiredtrueExplicit confirmation that the old coordinator has stopped; a remote PID or elapsed time is insufficient evidence.options.transporterRequiredTransportCaller-owned object transport used by the store or operation. Closing a workflow or sandbox does not close this transport.