Member-only story

Tasks Scheduling in Django with Redis and Celery

how to use celery and Redis with Django

Gautamankul
4 min readMay 15, 2022

Aman Kharwal Rinu Gour TDS Editors towarddatascience

Tasks Scheduling in Django with Redis and Celery

Hey, folks today we are learning Tasks Scheduling in Django with Redis and Celery in this Article we gone setup celery, celery Results ,Celery beat

Before dive into Real stuff we gone understand what is Celery, Celery Result and Celery Beat.

  • Celery : Celery is an asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well.” For this post, we will focus on the scheduling feature to periodically run a job/task.
pip install celery
  • Celery Beat: It is a part of celery ,basically beat is responsible for scheduling job/task. it is installed by pip
pip install django-celery-beat
  • Celery Results: This extension enables you to store Celery task results using the Django ORM.
  • It defines a single model (django_celery_results.models.TaskResult) used to store task results, and you can query this database table like any other Django model.
pip install django-celery-results
  1. Create project:

--

--

Gautamankul
Gautamankul

Written by Gautamankul

A Software Developer Engineer & Entrepreneur and along with i am a Buddhist.

Responses (1)