executorlib.standalone.queue.cancel_items_in_queue

executorlib.standalone.queue.cancel_items_in_queue#

executorlib.standalone.queue.cancel_items_in_queue(que: Queue)[source]#

Cancel items which are still waiting in the queue. If the executor is busy tasks remain in the queue, so the future objects have to be cancelled when the executor shuts down.

Parameters:

que (queue.Queue) – Queue with task objects which should be executed