mstk.scheduler.PbsJob

class mstk.scheduler.PbsJob(id, name, state, workdir=None, user=None, queue=None)

A PbsJob object is a job managed by scheduler.

Parameters:
  • id (int) – Job ID assigned by job scheduler.

  • name (str) – Name of this job in job scheduler.

  • state ([0, 1, 9]) – Whether this job is pending (0), running (1) or done (9). Successfully finished, Killed and failed are all considered as done.

  • workdir (str) – The working directory of this job.

  • user (str) – Name of the user who submitted this job.

  • queue (str) – The queue this job is submitted to.

id

Job ID assigned by job scheduler.

Type:

int

name

Name of this job in job scheduler.

Type:

str

state

Whether this job is pending (0), running (1) or done (9). Successfully finished, Killed and failed are all considered as done.

Type:

[0, 1, 9]

workdir

The working directory of this job.

Type:

str

user

Name of the user who submitted this job.

Type:

str

queue

The queue this job is submitted to.

Type:

str

state_str

The string shown by the job scheduler, which represents the state of the job.

Type:

str

Methods

__init__(id, name, state[, workdir, user, queue])

class State
PENDING = 0
RUNNING = 1
DONE = 9