@bitsinfra/fusee
    Preparing search index...

    Interface WorkflowDefinition<I, O>

    A workflow type: its name and code, a plain value apart from any engine. Pass it to Engine.open({ workflows }), engine.start, ctx.child; a client imports it to start runs with typed input and output.

    interface WorkflowDefinition<I = unknown, O = unknown> {
        concurrency?: Concurrency<I>;
        fn?: WorkflowFn<I, O>;
        kind: "workflow";
        name: string;
        timeout?: Duration;
        version: number;
    }

    Type Parameters

    • I = unknown
    • O = unknown
    Index
    concurrency?: Concurrency<I>

    At most limit runs at once (per key(input)); the others wait their turn.

    fn?: WorkflowFn<I, O>

    The code (absent in a definition that only names a type another process runs).

    kind: "workflow"
    name: string
    timeout?: Duration

    The run's deadline, unless a start gives one.

    version: number