I am using isolate to run unsafe code inside docker environment for quite some time.
Usually isolate does the job and kills long running code after the time limit but isolate is unable to kill blocking python code.
import queue
q = queue.Queue()
q.get()
Above code doesn't get killed even after using the timeout option. get() method of Queue class is a blocking code.
How to timeout the above code? TIA.
I am using isolate to run unsafe code inside docker environment for quite some time. Usually isolate does the job and kills long running code after the time limit but isolate is unable to kill blocking python code.
Above code doesn't get killed even after using the timeout option.
get()
method ofQueue
class is a blocking code. How to timeout the above code? TIA.