How to stop a process when a job is discarded? #2279
Replies: 1 comment
-
Same situation: neither What's the counter part of If you try and stop multiple jobs by using job status on an interval in quick succession , some do stop after returning for instance: In a controller
In a processor
The above code has no guarantee the job will terminate, certainly not if multiple jobs need to stop concurrently, some just turn into zombie processes. |
Beta Was this translation helpful? Give feedback.
-
Hey folks, I have an option where the user can cancel a job and what I'm doing right now is to use
job.discard()
. I don't know if this is the best method, I also see there is aremove()
. But right after discarding or removing a job, I would like to stop the process that was initialized which in my case is an FFmpeg transcoding which is pretty heavy. Thanks!Beta Was this translation helpful? Give feedback.
All reactions