You can stop all tasks if one task fails with the ThreadPoolExecutor in Python by using a threading.Event and waiting for tasks with the wait() module …
Continue Reading about How to Stop All Tasks if One Task Fails in the ThreadPoolExecutor in Python →