Your Python cache can run the same work twice, even with the GIL. See the check-then-act race, the lru_cache gotcha, and how ...
"It works in the command prompt, but fails when run from Windows Task Scheduler."Have you ever encountered this situation ...