Skip to content

Commit 225f362

Browse files
author
Tabatha Memmott
committed
Merge pull request #77 from Tivix/memmott-patch-1
update installation documentation with other management commands
2 parents 88b370f + adcca08 commit 225f362

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

docs/installation.rst

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)