Celery

sudo apt install python-celery-common

all configuration to run the celery process is put in a python file sometimes called tasks.py

celery -A tasks worker –loglevel=info

But you might have multiple workers named worker1.py and worker2.py so you would start them in two separate shells using

celery -A worker1 worker –loglevel=info
celery -A worker2 worker –loglevel=info

The “functions” you are going to background will be in worker1 or worker2.