Skip to content

Job creation fails if integer input is set to 0 in a pipeline #35285

Open

Description

I have a pipeline component written in yaml file. I load this using load_component. I set all the inputs in python. And then I call ml_client.jobs.create_or_update() and this fails. I traced the issue to line linked below, which removes input if value is equivalent to false/none/zero, because of this I get an error saying that an input is missing when integer input is set to 0. If this is intended behavior, it should be documented somewhere, but to me it seems like a bug.

inputs={k: v for k, v in self._job_inputs.items() if v},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Machine LearningService AttentionWorkflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions