JobStatus

class JobStatus(state, message=None)

Status of a job.

code

Status code for the job as a string such as “SUCCESS” or “OPTIMIZING_MODEL”. See JobStatus.State for a list of possible states.

Type:

str

message

Optional error message.

Type:

str

enum State(value)

An enumeration.

Valid values are as follows:

SUCCESS = <State.SUCCESS: 10>
FAILED = <State.FAILED: 30>
CREATED = <State.CREATED: 1>
UNSPECIFIED = <State.UNSPECIFIED: 0>
OPTIMIZING_MODEL = <State.OPTIMIZING_MODEL: 50>
PROVISIONING_DEVICE = <State.PROVISIONING_DEVICE: 60>
MEASURING_PERFORMANCE = <State.MEASURING_PERFORMANCE: 70>
RUNNING_INFERENCE = <State.RUNNING_INFERENCE: 80>
QUANTIZING_MODEL = <State.QUANTIZING_MODEL: 90>
LINKING_MODELS = <State.LINKING_MODELS: 100>
static all_running_states()
Returns:

  • List[JobStatus.State]

  • returns a list of all states in which jobs are running (not finished or pending)

property failure: bool

Returns whether a job failed.

Returns:

returns true if the job failed.

Return type:

bool

property finished: bool

Returns whether a job finished.

Returns:

returns true if the job finished.

Return type:

bool

property pending: bool

Returns whether a job is waiting to start running.

Returns:

returns true if the job is waiting to start.

Return type:

bool

property running: bool

Returns whether a job is still running.

Returns:

returns true if the job is still running.

Return type:

bool

property success: bool

Returns whether a job finished succesfully.

Returns:

returns true if the job finished succesfully.

Return type:

bool