Forum Discussion
2 Replies
- jamesvNew Contributor II
Dug into this again today and found an answer in a Stack Overflow post: linux - How to terminate a python subprocess launched with shell=True - Stack Overflow
- tlikarishEmployee
Would having a “clean up” method call be useful for the script snap? That is, a function that gets called before the pipeline goes into a finished state.
In your case, when it gets invoked, the script could terminate the subprocess and clean up any other things that might be lingering during the execution.