File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed
Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,24 @@ Installation
4343 > crontab -e
4444 */5 * * * * source /home/ubuntu/.bashrc && source /home/ubuntu/work/your-project/bin/activate && python /home/ubuntu/work/your-project/src/manage.py runcrons > /home/ubuntu/cronjob.log
4545
46- You can also run specify cron with ``python manage.py runcrons cron_class ...``, for example: ::
47-
48- # only run "my_app.cron.MyCronJob"
49- $ python manage.py runcrons "my_app.cron.MyCronJob"
50-
51- # run "my_app.cron.MyCronJob" and "my_app.cron.AnotherCronJob"
52- $ python manage.py runcrons "my_app.cron.MyCronJob" "my_app.cron.AnotherCronJob"
46+ Management Commands:
47+
48+ I. run a specific cron with ``python manage.py runcrons cron_class ...``, for example: ::
49+
50+ # only run "my_app.cron.MyCronJob"
51+ $ python manage.py runcrons "my_app.cron.MyCronJob"
52+
53+ # run "my_app.cron.MyCronJob" and "my_app.cron.AnotherCronJob"
54+ $ python manage.py runcrons "my_app.cron.MyCronJob" "my_app.cron.AnotherCronJob"
55+
56+ II. force run your crons with ``python manage.py runcrons --force``, for example: ::
57+
58+ # run all crons, immediately, regardless of run time
59+ $ python manage.py runcrons --force
60+
61+ III. run without any messages to the console ``python manage.py runcrons --silent``, for example: ::
62+
63+ # run crons, if required, without message to console
64+ $ python manage.py runcrons --silent
65+
66+
You can’t perform that action at this time.
0 commit comments