Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A clear step by step process for running a periodic task in a django application

I have been trying a long for creating a periodic task in Django but there are lot of version constraints and not a clear explanation.

like image 384
Crazy-Kaleidoscope-7 Avatar asked Feb 12 '19 04:02

Crazy-Kaleidoscope-7


People also ask

How do you create a periodic task in Django?

We can configure periodic tasks either by manually adding the configurations to the celery.py module or using the django-celery-beat package which allows us to add periodic tasks from the Django Admin by extending the Admin functionality to allow scheduling tasks.

What is periodic tasks in Django?

As you build and scale a Django app you'll inevitably need to run certain tasks periodically and automatically in the background. Some examples: Generating periodic reports. Clearing cache. Sending batch e-mail notifications.


1 Answers

I recommend Celery. What is Celery?

Celery supports scheduling tasks. Check this doc

like image 193
Jrog Avatar answered Sep 22 '22 08:09

Jrog