@mastra/core
Version:
16 lines • 1.33 kB
TypeScript
import type { Event } from '../../events/types.js';
import type { Mastra } from '../../mastra/index.js';
/** Stop local renewal without changing the shared claim or broadcasting workflow cancellation. */
export declare function stopDurableExecutionParticipants(mastra: Mastra): Promise<void>;
/** Keep the original claim alive across deliveries until its root settles or ownership is lost. */
export declare function participateInDurableExecution<T>(mastra: Mastra, event: Event, execute: () => Promise<T>): Promise<T>;
/**
* Stop renewing the claim of a root terminal delivery the processor abandoned, so another worker can recover the run.
* `published` is whether the processor published a compensating terminal for it; that delivery settles the run.
*/
export declare function stopAbandonedDurableExecution(mastra: Mastra, event: Event, published: boolean): Promise<void>;
/** Retry only conditional cleanup after a terminal delivery released its claim before broker acknowledgement. */
export declare function retrySettledDurableExecution(mastra: Mastra, event: Event): Promise<boolean>;
/** Called only after the root terminal handler has persisted and published its outcome. */
export declare function settleEventedDurableExecution(mastra: Mastra, event: Event): Promise<void>;
//# sourceMappingURL=evented-execution.d.ts.map