Class SlurmEngine.SlurmJobStatus

java.lang.Object
net.sf.basedb.opengrid.JobStatus
net.sf.basedb.opengrid.engine.SlurmEngine.SlurmJobStatus
Enclosing class:
SlurmEngine

public static class SlurmEngine.SlurmJobStatus extends JobStatus
Job status information for Slurm jobs. We need the subclass to be able to parse and update the status via protected setter methods.
  • Field Details

    • nullVariants

      private static final Set<String> nullVariants
      The output from 'squeue' and 'sacct' have *several* ways to indicate no information is available. We list all of them (that we know about) and convert the actual value to 'null' when parsing.
    • SLURM_DATE

      public static final DateFormatter SLURM_DATE
      Slurm always (I hope) return dates in "yyyy-MM-ddTHH:mm:ss" format. Example: 2014-03-21T08:59:09
  • Constructor Details

  • Method Details

    • readFromSqueueAndSacct

      void readFromSqueueAndSacct(String text, int timeAdjustment, SlurmEngine.PendingJobsCmd pendingJobs)
      Parse the output from 'squeue -o %all -j{id}'.
    • readFromStatusFile

      void readFromStatusFile(String text, int timeAdjustment)
      Parse information from the STATUS_FILE.