20 lines
362 B
Python
20 lines
362 B
Python
from enum import Enum
|
|
|
|
|
|
class State(Enum):
|
|
PENDING = "pending"
|
|
PREFLIGHT = "preflight"
|
|
SCHEDULED = "scheduled"
|
|
EXECUTING = "executing"
|
|
|
|
CACHE_HIT = "cache_hit"
|
|
DONE = "done"
|
|
|
|
FAILED = "failed"
|
|
RETRY = "retry"
|
|
DEAD = "dead"
|
|
|
|
THERMAL_GATED = "thermal_gated"
|
|
VM_ESCALATED = "vm_escalated"
|
|
POLICY_HELD = "policy_held"
|