Skip to content

Commit

Permalink
fix for recent model changes (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
avishniakov authored Oct 9, 2024
1 parent 8e987c8 commit b8f0580
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ jobs:
with:
stack-name: ${{ matrix.stack-name }}
python-version: ${{ matrix.python-version }}
ref-zenml: ${{ inputs.ref-zenml || 'feature/PRD-566-dependency-cleanup' }}
ref-zenml: ${{ inputs.ref-zenml || 'bugfix/PRD-653-fix-models-linkage' }}
ref-template: ${{ inputs.ref-template || github.ref }}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def compute_performance_metrics_on_current_data(
current_version = Model(name=latest_version.name, version=target_env)

latest_version_number = latest_version.number
current_version_number = current_version.number
try:
current_version_number = current_version.number
except KeyError:
current_version_number = None

if current_version_number is None:
current_version_number = -1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def promote_with_metric_compare(
latest_version = get_step_context().model
current_version = Model(name=latest_version.name, version=target_env)

current_version_number = current_version.number
try:
current_version_number = current_version.number
except KeyError:
current_version_number = None

if current_version_number is None:
logger.info("No current model version found - promoting latest")
Expand Down

0 comments on commit b8f0580

Please sign in to comment.