简体   繁体   中英

Best way to schedule task in Django, without Celery

Im looking for relatively simple and lightweight way to setup primitive DB maintain tasks for Django-based web-site. Celery seems for me like overkill.
In my mind its now looking like making custom Django management command, and putting in in cron.
Maybe some could suggest better method?

django-extensions has a jobs-scheduling function that would work well for DB maintenance tasks. You still would rely on cron entries to actually run them though.

But then again, just doing a management command from cron is perfectly reasonable.

Django Chronograph is a django app with a very nice admin interface for managing Cron Jobs and setting up multiple task. So in this way, you don't have to go and fiddle with your server's cron file and this interface/app would manage it efficiently for you.

You can also do it the Django way by writing Custom Management Commands as also mentioned here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM