๐คนBackground Tasks (Local)
Ready SaaS ships with a mechanism for your app to run tasks in the background. Using Celery and Redis, your project can handle tasks such as sending emails in the background.
The cool thing is that creating a new task to run in the background is super easy thanks to having all the setup already included in the project.
In order to run the background tasks, you need to follow these steps:
1. Install Redis and Start the Redis Server
Install redis with the following command:
brew install redis
Now run the redis server with this command:
redis-server
2. Start the background processes
Celery is used to run background tasks such as sending emails, processing payments, and more.
Run the following commands in separate terminal windows to start the Celery worker and beat processes.
python -m celery -A config worker -l info
python -m celery -A config beat -l info
If you you followed all the steps above successfully, you should see something like this in your terminal when running the celery worker:

Yay! Your local background setup is all set ๐
Last updated