How do I run a long-running job in the background in Python

Celery and RQ is overengineering for simple task.
Take a look at this docs – https://docs.python.org/3/library/concurrent.futures.html

Also check example, how to run long-running jobs in background for Flask app – https://stackoverflow.com/a/39008301/5569578

Leave a Comment