pip install "celery[librabbitmq,redis]"
https://docs.celeryq.dev/en/stable/getting-started/backends-and-brokers/rabbitmq.html
https://docs.celeryq.dev/en/stable/getting-started/backends-and-brokers/redis.html
Before running a workflow on Celery, one needs to switch on Celery with workers in a separate terminal.
In a terminal, proceed to project folder. Then, activate respective conda environment. Then, execute:
celery -A tasks worker --loglevel=info
This will create workers based on tasks.
Before running a workflow on Celery, it is advised to switch on monitoring for fancy task visualizations (including statuses, results, time, etc)
In a terminal, proceed to project folder. Then, activate respective conda environment. Then, execute:
celery -A tasks flower
To run the project execute
run_tasks.py