UNPKG

@mastra/core

Version:
30 lines • 1.16 kB
import { MastraWorker } from '../worker.js'; import type { WorkerDeps, WorkerStopOptions } from '../worker.js'; export interface OrchestrationWorkerConfig { group?: string; /** * How often (in ms) to renew an in-flight event's delivery lease while it is * being handled, for PubSub backends that support it. Defaults to 10000. */ leaseRenewIntervalMs?: number; } /** * Processes workflow events (step.run, step.end, start, cancel, etc.) * by delegating to the WorkflowEventProcessor. * * Subscribes to the PubSub "workflows" topic and routes events to WEP. * * When MASTRA_STEP_EXECUTION_URL is set, injects HttpRemoteStrategy into * WEP so step execution happens over HTTP to the server. Otherwise WEP * executes steps directly in-process. */ export declare class OrchestrationWorker extends MastraWorker { #private; readonly name = "orchestration"; constructor(config?: OrchestrationWorkerConfig); init(deps: WorkerDeps): Promise<void>; start(): Promise<void>; stop(options?: WorkerStopOptions): Promise<void>; get isRunning(): boolean; } //# sourceMappingURL=orchestration-worker.d.ts.map