[patch] new command for management -- runjobs
|Reported by:||Owned by:||Adrian Holovaty|
|Component:||Core (Management commands)||Version:|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
some of my applications require maintenance tasks run on them at defined periods,
to do things like emailing out reminders, archiving and things like that.
so instead of creating a whole slew of cronjobs, and then providing install instructions etc etc etc for each one,
I thought running a single command might be better, and could possibly become part of the default django install instructions
$ django-admin runjobs daily
would run all the scheduled 'daily' jobs that the apps have defined.
The would define this by listening for the run_daily_jobs signal in their management.py file.