{{#if parseError}}

Parse Error

{{parseError}}

{{/if}} {{#if planError}}

Plan Error

{{planError}}

{{/if}} {{#if runError}}

Run Error

{{runError}}

{{/if}} {{#if (eq stage "editor")}} {{#if (and showEditorMessage (eq context "new"))}}

Run a Job

Paste or author HCL or JSON to submit to your cluster. A plan will be requested before the job is submitted.

{{/if}}
Job Definition {{#if cancelable}} {{/if}}
{{ivy-codemirror data-test-editor value=(or job._newDefinition jobSpec) valueUpdated=(action (mut job._newDefinition)) options=(hash mode="javascript" theme="hashi" tabSize=2 lineNumbers=true )}}
{{/if}} {{#if (eq stage "plan")}} {{#if showPlanMessage}}

Job Plan

This is the impact running this job will have on your cluster.

{{/if}}
Job Plan
{{job-diff data-test-plan-output diff=planOutput.diff verbose=false}}
Scheduler dry-run
{{#if planOutput.failedTGAllocs}} {{#each planOutput.failedTGAllocs as |placementFailure|}} {{placement-failure failedTGAlloc=placementFailure}} {{/each}} {{else}} All tasks successfully allocated. {{/if}}
{{#if (and planOutput.preemptions.isFulfilled planOutput.preemptions.length)}}
Preemptions (if you choose to run this job, these allocations will be stopped)
{{#list-table source=planOutput.preemptions class="allocations is-isolated" as |t|}} {{#t.head}} ID Task Group Created Modified Status Version Node Volume CPU Memory {{/t.head}} {{#t.body as |row|}} {{allocation-row allocation=row.model context="job"}} {{/t.body}} {{/list-table}}
{{/if}}
{{/if}}