# parsl.jobs.states.JobState

class parsl.jobs.states.JobState(value, names=_not_given, *values, module=None, qualname=None, type=None, start=1, boundary=None)

  Defines a set of states that a job can be in

  __init__(*args, **kwds)

  Methods

  `conjugate`() | Returns self, the complex conjugate of any int.
  `bit_length`() | Number of bits necessary to represent self in binary.
  `bit_count`() | Number of ones in the binary representation of the absolute value of self.
  `to_bytes`([length, byteorder, signed]) | Return an array of bytes representing an integer.
  `from_bytes`([byteorder, signed]) | Return the integer represented by the given array of bytes.
  `as_integer_ratio`() | Return a pair of integers, whose ratio is equal to the original int.
  `is_integer`() | Returns True.
  `__init__`(*args, **kwds) |

  Attributes

  `real` | the real part of a complex number
  `imag` | the imaginary part of a complex number
  `numerator` | the numerator of a rational number in lowest terms
  `denominator` | the denominator of a rational number in lowest terms
  `UNKNOWN` | The batch provider is unable to determinate a state for this job
  `PENDING` | "This job is in the batch queue but has not started running
  `RUNNING` | This job is running in the batch system
  `CANCELLED` | This job has been cancelled
  `COMPLETED` | This job has completed
  `FAILED` | This job has failed
  `TIMEOUT` | This job has ended due to walltime expiry.
  `HELD` | This job is held/suspended in the batch system
  `MISSING` | This job has reached a terminal state without the resources(managers/workers) launched in the job connecting back to the Executor.
  `SCALED_IN` | This job has been deliberately scaled in.

  CANCELLED = 3

    This job has been cancelled

  COMPLETED = 4

    This job has completed

  FAILED = 5

    This job has failed

  HELD = 7

    This job is held/suspended in the batch system

  MISSING = 8

    This job has reached a terminal state without the resources(managers/workers) launched in the job connecting back to the Executor. This state is set by HTEX when it is able to infer that the block failed to start workers for eg due to bad worker environment or network connectivity issues.

  PENDING = 1

    “This job is in the batch queue but has not started running

  RUNNING = 2

    This job is running in the batch system

  SCALED_IN = 9

    This job has been deliberately scaled in. Scaling code should not be concerned that the job never ran (for example for error handling purposes).

  TIMEOUT = 6

    This job has ended due to walltime expiry. This is different from other error states, because in the pilot job model, a timeout is usually expected and not a failure. Timeouts should not be reported with FAILED state: if they are reported as FAILED, Parsl’s error handling code in `simple_error_handler` will eventually regard the batch system as broken and shut down.

  UNKNOWN = 0

    The batch provider is unable to determinate a state for this job