-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sdk] Error compiling with ParallelFor and PipelineParam #10592
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
this looks like it's still relevant |
This bug is still present in SDK 2.2.0. |
Since presumably only tasks are needed to be checked here, pipeline parameters can probably be ignored: pipelines/sdk/python/kfp/compiler/compiler_utils.py Lines 762 to 765 in 9cb5913
Like so: upstream_tasks_that_downstream_consumers_from = [
channel.task.name for channel in task._channel_inputs if channel.task is not None
] |
Any news about this? or is there any known workaround to make it work (other then removing the |
Also looking for info on this. The only way I know to work around it is to have the components in the loop have an output and collect them, which has the side effect of limiting parallelism to 100. |
Workaround suggestion. Seems the problem happens when pipeline parameters are used by a task next to
So the possible workaround is 1) to surround the pipeline function by another function and 2) to pass parameters to the outer function instead. In the following example, parameter
It works in my situation. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
/lifecycle frozen |
Hitting this same issue with KFP on vertex pipelines, are there any known workarounds? |
Hi, any plan to fix this issue? |
I have a fix for this (at least that passes my use case) here #11476 Which appears to be failing on a flaky test, my time to work through those issues is fairly limited, so im hoping it resolves iotself with a retry given how little code ive actually changed |
Environment
KFP version: N/A - it does not compile
KFP SDK version: kfp 2.7.0
All dependencies version:
pip list | grep kfp kfp 2.7.0 kfp-pipeline-spec 0.3.0 kfp-server-api 2.0.5
Steps to reproduce
Using the following script IO get an unexpected error
or adding the following test
to the python sdk
compiler_test.py
will do the trick.With the above I get the following error:
Expected result
Materials and Reference
This issue is related to changes in #10257
Doing a check
if channel.task
in https://github.com/kubeflow/pipelines/blob/master/sdk/python/kfp/compiler/compiler_utils.py#L763 will make the above test pass.Impacted by this bug? Give it a 👍.
The text was updated successfully, but these errors were encountered: