https://www.orchest.io/ logo
Title
m

Michael Mei

10/20/2022, 8:44 PM
Does the orchest sdk have a method for stopping the pipeline?
đź‘‹ 1
r

Rick Lamers

10/20/2022, 8:48 PM
Do you mean from within the code of the steps or externally?
m

Michael Mei

10/20/2022, 8:49 PM
@Rick Lamers from within the code of the steps
r

Rick Lamers

10/20/2022, 8:52 PM
A simple way would be to raise an exception it would stop all downstream steps (steps that follow it). Or would you like to stop the entire pipeline?
m

Michael Mei

10/20/2022, 8:53 PM
I would like it to just stop the entire pipeline. situation being where under a certain condition, there is no need to continue/run further steps
not that running the other steps would be an issue, just seems nicer
r

Rick Lamers

10/20/2022, 8:56 PM
We don’t expose a REST API to operate on entities on the Orchest cluster yet. Eg calling “DELETE pipeline-run”. A REST API is in the works though. If you’re really in need and aren’t afraid of some reverse engineering you can check out the API call that gets made when you cancel a pipeline run in a job (there’s a button for it) and make such a call from your code. Short answer is: no easy way yet to do exactly that atm.
m

Michael Mei

10/20/2022, 8:56 PM
totally understand and thanks for the info!
đź’Ż 1
r

Rick Lamers

10/20/2022, 8:57 PM
Love these questions, please keep them coming :)
👍 1
y

Yannick

10/21/2022, 1:20 PM
I would like it to just stop the entire pipeline. situation being where under a certain condition, there is no need to continue/run further steps
When you raise an exception, no other steps will be executed. It might not sounds like a clean solution, but does exactly what you want. Love the suggestions as well 🙌
it would stop all downstream steps (steps that follow it)
It actually stops the entire pipeline (even unconnected components).