Reputation: 15157
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?
Upvotes: 3
Views: 2208
Reputation: 3145
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.
Upvotes: 1
Reputation: 16806
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.
Upvotes: 1