Skip to content

Commit

Permalink
[Pipelines] Add "Unknown" pipeline run status (mlrun#7216)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerShor authored Feb 3, 2025
1 parent 49c7741 commit 983443f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mlrun/common/runtimes/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ def pipeline_run_status_to_run_state(pipeline_run_status):
mlrun_pipelines.common.models.RunStatuses.runtime_state_unspecified: RunStates.unknown,
mlrun_pipelines.common.models.RunStatuses.error: RunStates.error,
mlrun_pipelines.common.models.RunStatuses.paused: RunStates.unknown,
# TODO: Uncomment once pipelines-adapters 0.3.7 is released
# mlrun_pipelines.common.models.RunStatuses.unknown: RunStates.unknown,
}[pipeline_run_status]


Expand Down
2 changes: 1 addition & 1 deletion pipeline-adapters/mlrun-pipelines-kfp-common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

setup(
name="mlrun-pipelines-kfp-common",
version="0.3.6",
version="0.3.7",
description="MLRun Pipelines package for providing KFP common functionality",
author="Yaron Haviv",
author_email="[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class RunStatuses(StrEnum):
skipped = "Skipped"
error = "Error" # available only on KFP 1.8 or lower
running = "Running"
unknown = "Unknown"

# States available only on KFP 2.0
runtime_state_unspecified = "Runtime_State_Unspecified"
Expand Down Expand Up @@ -90,6 +91,7 @@ def all():
RunStatuses.canceling,
RunStatuses.canceled,
RunStatuses.paused,
RunStatuses.unknown,
]

@staticmethod
Expand Down

0 comments on commit 983443f

Please sign in to comment.