Forum Discussion
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
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.
Related Content
- 3 years ago
- 2 years ago
- 4 years ago