TaskGroupEvents: {
    error: TaskError | TasksError | Error;
    param: "status" | "progress" | "flags";
    progress: number;
    success: void;
    transition: { from?: FlowState; task: ExecutableTask; to?: FlowState };
}

Events emitted by TaskGroup.

Type declaration

  • error: TaskError | TasksError | Error

    Emitted when a task or the task group encounters an error.

  • param: "status" | "progress" | "flags"

    Emitted when a parameter changes.

  • progress: number

    Emitted when the progress of the task group is updated.

  • success: void

    Emitted when all tasks in the queue are executed successfully.

  • transition: { from?: FlowState; task: ExecutableTask; to?: FlowState }

    Emitted when a task transitions between states in the flow.