We will DLX to schedule celery tasks
- Make sure you have Python 3.7+ installed.
- Make sure that you have a Rabbitmq server installed and available.
Use the package manager pip to install dependencies from requirements.txt
pip install -r requirements.txt
RABBITMQ_PROTOCOL: str = ""
RABBIT_MQ_USERNAME: str = ""
RABBIT_MQ_PSWD: str = ""
RABBITMQ_HOST: str = ""
RABBITMQ_PORT: str = ""
RABBITMQ_VHOST: str = ""
RABBITMQ_VHOST_FOR_CELERY: str = ""
You can create a file named .env in the project root folder and add the above values.
python3 __main__.py
celery -A celery_app worker -l info -Q add-tasks -c 1