Skip to main content

All Questions

2 votes
0 answers
40 views

Handling interrupts in asyncio jobs running in separate processes with done callbacks [duplicate]

I'm running a large number of CPU-bound computations in separate processes and want to perform some callback as each job finishes. To do this I'm combining asyncio with a concurrent.futures....
Sean's user avatar
  • 1,426
6 votes
1 answer
4k views

How to terminate long-running computation (CPU bound task) in Python using asyncio and concurrent.futures.ProcessPoolExecutor?

Similar Question (but answer does not work for me): How to cancel long-running subprocesses running using concurrent.futures.ProcessPoolExecutor? Unlike the question linked above and the solution ...
Darkfish's user avatar
  • 396