• Map HotMesh job state to a human-readable execution status.

    HotMesh semaphore: 0 = idle, > 0 = pending activities, < 0 = failed / interrupted.

    A workflow can be "done" (state.data.done === true) while the semaphore is still > 0 (cleanup activities pending). We check both the done flag and the semaphore to determine status.

    Parameters

    • rawStatus: number
    • OptionalisDone: boolean
    • OptionalhasError: boolean

    Returns WorkflowExecutionStatus