Skip to content

fix: conditionally render MlflowConfig in pipeline templates when ARN is None#5928

Open
lucasjia-aws wants to merge 1 commit into
aws:masterfrom
lucasjia-aws:fix/gpu_integ_oss
Open

fix: conditionally render MlflowConfig in pipeline templates when ARN is None#5928
lucasjia-aws wants to merge 1 commit into
aws:masterfrom
lucasjia-aws:fix/gpu_integ_oss

Conversation

@lucasjia-aws
Copy link
Copy Markdown
Collaborator

@lucasjia-aws lucasjia-aws commented Jun 4, 2026

When mlflow_resource_arn is None, Jinja2 renders the literal string "None" into the pipeline JSON, causing SageMaker to reject it with a validation error. Wrap MlflowConfig blocks with {% if mlflow_resource_arn %} so the section is omitted entirely when MLflow tracking is unavailable.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… is None

When mlflow_resource_arn is None, Jinja2 renders the literal string "None"
into the pipeline JSON, causing SageMaker to reject it with a validation
error. Wrap MlflowConfig blocks with {% if mlflow_resource_arn %} so the
section is omitted entirely when MLflow tracking is unavailable.
@lucasjia-aws lucasjia-aws changed the title fix: conditionally render MlflowConfig in pipeline templates when ARN… fix: conditionally render MlflowConfig in pipeline templates when ARN is None Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant