title: job status in SLURM
body: <p>I would like to view all my recent jobs run on the cluster (completed, failed, and running). I would also like to see 1 entry per job.  Executing <code>sacct</code> retruns 3 lines per job with <code>State: FAILED, FAILED, COMPLETED</code>. What does this mean and how do I view the actual information I would like to see?</p>
  
  <p>I don't understand what a <code>JobName</code> of <code>true</code> means either.</p>
  
  <p>Here is a copy of the output:</p>
  
  <pre><code>   JobID    JobName  Partition    Account  AllocCPUS      State ExitCode 
   ------------ ---------- ---------- ---------- ---------- ---------- -------- 
   2160852               R   interact cluster_u+          2  COMPLETED      0:0 
   2160864               R   interact cluster_u+          2  COMPLETED      0:0 
   2161424               R   interact cluster_u+          2  COMPLETED      0:0 
   2161430               R   interact cluster_u+          0 CANCELLED+      0:0 
   2161431               R   interact cluster_u+          2  COMPLETED      0:0 
   2161668               R   interact cluster_u+          2  COMPLETED      0:9 
   2161682          myjob+    general cluster_u+          2     FAILED      1:0 
   2161682.bat+      batch            cluster_u+          1     FAILED      1:0 
   2161682.0          true            cluster_u+          1  COMPLETED      0:0 
   2161683          myjob+    general cluster_u+          2     FAILED      1:0 
   2161683.bat+      batch            cluster_u+          1     FAILED      1:0 
   2161683.0          true            cluster_u+          1  COMPLETED      0:0 
  </code></pre>
  
  <p>Submission script (note that values in &lt;% %> are processed by package BatchJobs in R):</p>
  
  <pre><code> #!/bin/bash
   #SBATCH -J &lt;%= job.name %&gt;            # name of the job
   #SBATCH -p general
   #SBATCH --mem &lt;%= resources$memory %&gt;    # Memory requirements in Kbytes
   #SBATCH -o ./logs/&lt;%= job.name %&gt;_log.txt    # Memory requirements in Kbytes
  
  
   eval "R --vanilla --slave &lt; &lt;%= rscript %&gt;"
  </code></pre>