Sanity Library Reference Docs
    Preparing search index...

    Type Alias CompletionReasonBeta

    CompletionReason:
        | "ALL_COMPLETED"
        | "MIN_SUCCESSFUL_REACHED"
        | "FAILURE_TOLERANCE_EXCEEDED"
        | "CUSTOM_COMPLETION_SUCCEEDED"
        | "CUSTOM_COMPLETION_FAILED"

    Reason why a step.fanout operation completed.

    • ALL_COMPLETED: every item finished.
    • MIN_SUCCESSFUL_REACHED: CompletionConfig.minSuccessful was reached.
    • FAILURE_TOLERANCE_EXCEEDED: a failure threshold was exceeded.
    • CUSTOM_COMPLETION_SUCCEEDED: a custom CompletionConfig.shouldComplete predicate signalled completion with a SUCCEEDED outcome before all items finished.
    • CUSTOM_COMPLETION_FAILED: a custom CompletionConfig.shouldComplete predicate signalled completion with a FAILED outcome before all items finished. Using durables is considered experimental and may change in the future.