Can we migrate processes across different multiprocessing pools in python?
<p>I wanna do some task scheduling using python multiprocessing module. I have two pools p1 and p2. One with high priority and one with low priority. A task is first put into the high priority pool. If after a certain amount of time, say 10s, the task still not finishes, i will migrate it to the lower priority pool. The question is can i migrate the task from one pool to another without wasting the work that is already done in the first pool? Basically, i wanna pause a running subprocess in one pool and add it to another pool and then resume it. If the second pool is busy, the task will wait until a free slot is available.</p>