Skip to content

Commit

Permalink
bump timeouts for mlflow
Browse files Browse the repository at this point in the history
  • Loading branch information
avishniakov committed Oct 12, 2023
1 parent 1377a8d commit 23f9358
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions template/pipelines/batch_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def {{product_name}}_batch_inference():
registry_model_name=get_pipeline_context().extra["mlflow_model_name"],
registry_model_version=registry_model_version,
replace_existing=False,
timeout=180,
)
inference_predict(
deployment_service=deployment_service,
Expand Down
2 changes: 2 additions & 0 deletions template/pipelines/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def {{product_name}}_training(
registry_model_name=pipeline_extra["mlflow_model_name"],
registry_model_version=latest_version,
replace_existing=False,
timeout=180,
)
latest_metric = promote_get_metric(
id="get_metrics_latest_model_version",
Expand All @@ -162,6 +163,7 @@ def {{product_name}}_training(
registry_model_name=pipeline_extra["mlflow_model_name"],
registry_model_version=current_version,
replace_existing=False,
timeout=180,
after=["get_metrics_latest_model_version"],
)
current_metric = promote_get_metric(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def generate_and_run_project(
except subprocess.CalledProcessError as e:
raise RuntimeError(
f"Failed to run project generated with parameters: {answers}\n"
f"{e.output}"
f"{e.output.decode()}"
) from e

# check the pipeline run is successful
Expand Down

0 comments on commit 23f9358

Please sign in to comment.