๐คนBackground Tasks (Local)
Last updated
Last updated
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:
Install redis with the following command:
Now run the redis server with this command:
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.
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 ๐