goto('/schedules')} bind:this={scheduleEditor} />
{ if (!isSelectingJobsToCancel || isJobCancelable(job)) { dispatch('select') } }} >
{#if isSelectingJobsToCancel && isJobCancelable(job)}
{/if} {#if isExternal} {:else if 'success' in job && job.success} {#if job.is_skipped} {:else} {/if} {:else if 'success' in job} {:else if 'running' in job && job.running} {:else if job && 'running' in job && job.scheduled_for && forLater(job.scheduled_for)} {:else} {/if}
{#if job} {#if 'started_at' in job && job.started_at} Started {#if job && 'duration_ms' in job && job.duration_ms != undefined} (Ran in {msToReadableTime( job.duration_ms )}{#if job.job_kind == 'flow' || job.job_kind == 'flowpreview'} total{/if}) {/if} {#if job && (job.self_wait_time_ms || job.aggregate_wait_time_ms)} {/if} {:else if `scheduled_for` in job && job.scheduled_for && forLater(job.scheduled_for)} Scheduled for {displayDate(job.scheduled_for)} {:else} Waiting for executor (created ) {/if} {/if}
{#if job === undefined} No job found {:else}
{#if job.script_path}
{#if isExternal} - {:else} {job.script_path} {/if} {#if job.script_path?.startsWith('f/')} {/if}
{:else if 'job_kind' in job && job.job_kind == 'preview'} Preview without path {:else if 'job_kind' in job && job.job_kind == 'dependencies'} lock deps of {truncateHash(job.script_hash ?? '')} {:else if 'job_kind' in job && job.job_kind == 'identity'} no op {/if}
{/if}
{#if job && job.parent_job} {#if job.is_flow_step} {:else} {/if} {/if}
{#if containsLabel}
{#if job && job?.['labels']}
{#if Array.isArray(job?.['labels'])} {#each job?.['labels'] as label} {/each} {/if}
{/if}
{/if}
{#if job && job.schedule_path}
{:else}
{truncateRev(job.created_by ?? '', 20)}
{#if !isExternal} {/if}
{/if}