V1Statuses

polyaxon.lifecycle.__init_)

Status is the information that represents the current state of a run.

By examining a run status and/or the history of its statuses, you can learn what stage the run is at, and what stages are left.

The supported statuses by Polyaxon.

  • Enum:
    • CREATED: “created”
    • ON_SCHEDULE: “on_schedule”
    • RESUMING: “resuming”
    • WARNING: “warning”
    • UNSCHEDULABLE: “unschedulable”
    • COMPILED: “compiled”
    • QUEUED: “queued”
    • SCHEDULED: “scheduled”
    • STARTING: “starting”
    • RUNNING: “running”
    • SUCCEEDED: “succeeded”
    • FAILED: “failed”
    • UPSTREAM_FAILED: “upstream_failed”
    • STOPPING: “stopping”
    • STOPPED: “stopped”
    • SKIPPED: “skipped”
    • RETRYING: “retrying”
    • UNKNOWN: “unknown”

StatusColor

polyaxon.lifecycle.StatusColor()

The statuses colors.

  • Enum:
    • GREEN: #1aaa55
    • RED: #aa310f
    • BLUE: #2e77aa
    • YELLOW: #aa9e4a
    • GREY: #485563

LifeCycle

polyaxon.lifecycle.LifeCycle()

The Run LifeCycle is state machine for status transition.


can_check_heartbeat

can_check_heartbeat(cls, status)

Checks if a run with this status is in a state that allows to check for a heartbeat.


is_unschedulable

is_unschedulable(cls, status)

Checks if a run with this status is unschedulable.


is_warning

is_warning(cls, status)

Checks if a run with this status is in a warning status.


is_pending

is_pending(cls, status)

Checks if a run with this status is in a pending status.


is_compiled

is_compiled(cls, status)

Checks if a run with this status is compiled.


is_compilable

is_compilable(cls, status)

Checks if a run with this status is compilable.


is_queued

is_queued(cls, status)

Checks if a run with this status is queued.


is_starting

is_starting(cls, status)

Checks if a run with this status is starting.


is_running

is_running(cls, status)

Checks if a run with this status is running.


is_k8s_stoppable

is_k8s_stoppable(cls, status)

Checks if a run with this status is scheduled on k8s and is stoppable.


is_stoppable

is_stoppable(cls, status)

Checks if a run with this status is stoppable.


is_stopping

is_stopping(cls, status)

Checks if a run with this status is stopping.


is_done

is_done(cls, status, progressing=False)

Checks if a run with this status is done.


failed

failed(cls, status)

Checks if a run with this status is failed.


succeeded

succeeded(cls, status)

Checks if a run with this status is succeeded.


stopped

stopped(cls, status)

Checks if a run with this status is stopped.


skipped

skipped(cls, status)

Checks if a run with this status is skipped.