title: SLURM sacct shows 'batch' and 'extern' job names
body: <p>I have submitted a job to a SLURM queue, the job has run and completed. I then check the completed jobs using the <code>sacct</code> command. But looking at the results of the sacct command I notice additional results that I did not expect:</p>
  
  <pre><code>       JobID                        JobName      State      NCPUS  Timelimit
  5297048                                test  COMPLETED          1   00:10:00  
  5297048.bat+                          batch  COMPLETED          1           
  5297048.ext+                         extern  COMPLETED          1       
  </code></pre>
  
  <p>Can anyone explain what the 'batch' and 'extern' jobs are and what their purpose is. Why does the extern job always complete even when the primary job fails.</p>
  
  <p>I have attempted to search the documentation but have not found a satisfactory and complete answer.</p>
  
  <p>EDIT: Here's the script I am submitting to produce the above <code>sacct</code> output:</p>
  
  <pre><code>#!/bin/bash
  echo test_script &gt; done.txt
  </code></pre>
  
  <p>With the following <code>sbatch</code> command:</p>
  
  <pre><code>sbatch -A BRIDGE-CORE-SL2-CPU --nodes=1 --ntasks=1 -p skylake --cpus-per-task 1 -J jobname -t 00:10:00 --output=./output.out --error=./error.err &lt; test.sh
  </code></pre>