{#if type == 'WaitingForEvents'}
{approval_wait ? approval.label : 'Waiting to be resumed by resume events such as approvals'}
{:else if type == 'WaitingForPriorSteps'}
Waiting for prior steps to complete
{:else if type == 'WaitingForExecutor' && waiting_reason === 'sleep'}
Sleeping until {displayDate(scheduled_for, true)} · {msToCompactDuration(sleepLeft, 0)} left
{:else if type == 'WaitingForExecutor' && waiting_reason === 'concurrency'}
Held by concurrency limit{heldFor != undefined
? ` · ${msToCompactDuration(heldFor, 0)}`
: ''}{concurrency_key ? ` (key ${concurrency_key})` : ''}, next check by {displayDate(
scheduled_for,
true
)}
{:else if type == 'WaitingForExecutor'}
{#if scheduled_for && forLater(scheduled_for.toString())}
Job is scheduled to be executed at {displayDate(scheduled_for, true)}
{:else}
Job is waiting for an executor
{/if}
{:else if skipped}
Skipped
{:else if type == 'Success'}
Success
{:else if type == 'Failure'}
Failure
{/if}