Skip to content

Commit

Permalink
Handle node preemption during runs (#444)
Browse files Browse the repository at this point in the history
* Add node_preempted RunState

* version bump
  • Loading branch information
rossgray authored Mar 26, 2024
1 parent 7a06c4a commit 9adf1db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pipeline/cloud/schemas/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class RunState(str, Enum):
completed = "completed"
failed = "failed"
no_resources_available = "no_resources_available"
node_preempted = "node_preempted"
unknown = "unknown"

@staticmethod
Expand All @@ -27,6 +28,7 @@ def terminal_states(cls) -> list["RunState"]:
RunState.completed,
RunState.failed,
RunState.no_resources_available,
RunState.node_preempted,
]

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pipeline-ai"
version = "2.1.1"
version = "2.1.2"
description = "Pipelines for machine learning workloads."
authors = [
"Paul Hetherington <ph@mystic.ai>",
Expand Down

0 comments on commit 9adf1db

Please sign in to comment.