django-best-practices icon indicating copy to clipboard operation
django-best-practices copied to clipboard

How to setup scheduled scripts (e.g. for maintenance)

Open mik4el opened this issue 13 years ago • 1 comments

Please describe how to schedule scripts for simpler tasks. E.g. using BaseCommand. A lot of people suggest setting up urls to start the script, having an external script that import settings and many other complex things. The craziest thing I've seen (but probably useful for some cases) is to have the regular requests from google-bots invoke scripts... That's why I think it's a good thing to suggest managment commands when they're so easy and integrates nicely with your apps.

mik4el avatar Sep 13 '12 14:09 mik4el

Common practice is to "just use celery" because it is already there in many cases. http://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html

Management tasks + cron work as well. I'll work on adding some documentation around these bits.

ipmb avatar Sep 13 '12 14:09 ipmb