-
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] ExitHandler doesn't compile with task Inputs #10187
Comments
Is this a duplicate of #9459, @connor-mccarthy? |
/assign @connor-mccarthy |
@TobiasGoerke, I don't think this is. This looks like an SDK bug, while #9459 is a FR for the KFP open source backend. |
Got same issue from basic example. |
@subasathees, this is a deprecation warning. Consider migrating your components to |
Thanks for reply. I saw somewhere people discussed it's 3.7 issue and be disappeared once move to 3.8 (2024 I think). But what is strange is that I have 3.11 based custom build image. |
@kabartay, is it possible you're using Python 3.7 in your compilation environment, despite using > Python 3.7 for the runtime environment? |
I bumped into the same issue today on Python 3.10, found a workaround by wrapping the tasks ( |
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 issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it. |
/reopen
The workaround helps, but the original issue does not seem to be resolved. |
@AnnKatrinBecker: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/reopen |
@HumairAK: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Can you help us by providing a code example of that workaround? It will help others to do the same while we work on a fix. |
Hi, this issue prevents us from creating a Ray cluster with a unique name at KFP runtime, so we cannot concurrently execute the same KFP pipeline |
/assign @hbelmiro |
Exit tasks cannot depend on any other tasks. We can see this validation in the code. But that error is not shown. I've sent a PR to fix that. The problem is in this line: exit_task = test_step(input=pre_task.output) It compiles if we change that line to not depend on exit_task = test_step(input="some string") |
If a dependent task is not part of the ExitHandler, why can't it be supported? We need to provide a runtime-generated value to our ExitHandler function. |
Environment
2.0.3
(manifests v1.8 release)Issue is possibly related to #9386.
Steps to reproduce
Execute a pipeline that contains an ExitHandler, whose exit_task takes in an input.
Simple example:
Expected result
No error on compilation.
Instead:
The text was updated successfully, but these errors were encountered: