[sdk] Cannot set dynamic node_selector or cpu/memory requests/limits #10154
Labels
area/sdk
kind/bug
lifecycle/stale
The issue / pull request is stale, any activities remove this label.
Environment
KFP version:
Built from 1.8 branch the day before 1.8-rc2 was released.
KFP SDK version:
Steps to reproduce
I cannot define compute resources in a parent component and pass to a child component using the V2 SDK, although this was supported in V1 SDK versions. The problem can be reproduced by attempting to compile the following pipeline.
The error for
add_node_selector
is:The error for
set_{cpu/memory}_{request/limit}
is:Expected result
To be able to compile and run a pipeline using dynamic compute resources generated from an upstream parent component. This is essentially for pipelines to be reusable across different size datasets. For example, my pipelines may be used with a dataset that has 100 unique observations and requires a very small AWS EC2 instance, but it also may be used with tens of thousands of unique observations, and require a much larger AWS EC2 instance.
In our pipelines, the first component reads in an external config source and allocates compute resources to all downstream components based on this configuration. In V2, we'd have to hard-code values into pipelines which severely limits the scope and usability of the pipeline.
Materials and Reference
It seems this issue has examples that pass, but it was several years ago at this point.
Impacted by this bug? Give it a 👍.
The text was updated successfully, but these errors were encountered: