Class SlurmEngine.SacctCmd

java.lang.Object
net.sf.basedb.opengrid.CmdResult<JobStatus>
net.sf.basedb.opengrid.engine.SlurmEngine.SacctCmd
Enclosing class:
SlurmEngine

public static class SlurmEngine.SacctCmd
extends CmdResult<JobStatus>
Implements the 'sacct' command for getting information about a completed job. The -P option generates output separated by '|' and we can specify the columns that we need.
  • Field Details

    • SACCT_COLS

      public static final String SACCT_COLS
      Data columns we want to return from 'sacct'. Note that order is important in some cases. For example we need 'ExitCode' before 'State' since 'State' will override in some cases.
      See Also:
      Constant Field Values
    • jobId

      private final JobIdentifier jobId
    • timeAdjustment

      private final int timeAdjustment
  • Constructor Details

    • SacctCmd

      public SacctCmd​(JobIdentifier jobId, int timeAdjustment)
  • Method Details

    • parseResult

      protected void parseResult()
      Description copied from class: CmdResult
      This method is called after the command has been executed and the exit code, stdout and stderr has been updated. Subclasses can override this method to take actions. The default implementation does nothing.
      Overrides:
      parseResult in class CmdResult<JobStatus>