slurmJobs - Slurm batch job status query

   slurmJobs [-h] [-u username] [-j job_id] [-s stat ] [-a account] [-q queue]

  Display status Slurm batch jobs and other information about the selected batch jobs. By default, slurmJobs show all jobs if no option is given. Use [ -u username ] option to select the jobs for specified users. It will display the job status and related information, such as, Exec_HOST, SUBMIT_TIME, WALLTIME and ACCOUNT etc. The status display in the output will be R for running,PD for pending, H for holding, TO for timeout, CA for cancelled, CD for completed and O for others. Please notes, the completed job will only list during a short period after the job is done.

          Print the command usage on standard output and exit.
     -u username
          Show the job belonging to the user username only (default display all users).
     -s stat
          Show the status of batch jobs in specified state (R/PD/H/TO/CA/CD/O).
                 R -  Running (job is currently running)
                 PD - Pending in Slurm queue
                 H -  Hold in PBS queue (Dependency)
                 TO - Job timed out  (over the walltime, and killed by server)
                 CA - Job cancelled by user or admin due to problem.
                 CD - Job just ifinished.
     -q queue
         Show the job belongs to given queue. Show the statue of batch jobs in specified queue
     -a account
         Show the status of batch jobs belonging to specified account
     -j job_id
         Show only the status of a given job. If the command succeeds and the job is still in the queue, the output will be one of the followings:
R/PD/H/TO/CA/CD/O. Otherwise  "Unknown Job Id xxx" will be printed out and the command will exit with a non-zero value.