elyra
elyra copied to clipboard
Invoking workflow from another workflow
Is your feature request related to a problem? Please describe. Based on kubeflow pipelines documentation https://www.kubeflow.org/docs/components/pipelines/sdk/connect-api/, one can use kfp client to invoke the other workflow, but needs to poll it until completion.
Describe the solution you'd like It would be nice to have an example on how to do this - ideally a code snipet, that I can reuse in my code
Describe alternatives you've considered None at the moment
Additional context Add any other context or screenshots about the feature request here.
Hi @blublinsky, when you export a pipeline to Python from the Visual Pipeline Editor Elyra generates code that submits the pipeline. In https://github.com/elyra-ai/elyra/issues/1695#issuecomment-849989898 I've posted example code that polls the Kubeflow server until the pipeline run completes.
Two quick updates on my latest response:
- In an earlier release we've removed the ability to export a pipeline to Kubeflow Pipelines DSL. Only export to the static config file (YAML) format is supported.
- The
elyra-pipeline submit
CLI command supports monitoring of Kubeflow Pipeline runs. You could therefore take advantage of this feature to execute a pipeline after another pipeline completed successfully. Conditional execution can be accomplished by checking the exit code, as documented. Hope this helps!