Skip to content

Commit 657e134

Browse files
DOCS/ link to a demo app, docs improvments
1 parent 120d3a6 commit 657e134

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ Documentation
2323
http://django-cron.readthedocs.org/en/latest/
2424

2525
This open-source app is brought to you by Tivix, Inc. ( http://tivix.com/ )
26+
27+
Demo App
28+
=============
29+
30+
https://github.com/Tivix/django-crone-demo

docs/sample_cron_configurations.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,33 @@ Run monthly feature
6464
--------------------
6565
``run_monthly_on_days`` specifies the day of the month on which the job should be run.
6666

67-
You can set your job to run every month at particular day, for example at the 1st and 10th day of month.
67+
You have to combine ``run_monthly_on_days`` with ``run_at_times`` or ``run_every_mins``.
68+
69+
You can set your job to run every month at particular day, for example at 6:30 on the 1st and 10th day of month.
6870

6971
.. code-block:: python
7072
7173
class MyCronJob(CronJobBase):
7274
RUN_MONTHLY_ON_DAYS = [1, 10]
73-
schedule = Schedule(run_monthly_on_days=RUN_MONTHLY_ON_DAYS)
75+
RUN_AT_TIMES = ['6:30']
76+
schedule = Schedule(run_monthly_on_days=RUN_MONTHLY_ON_DAYS, run_at_times=RUN_AT_TIMES)
7477
7578
Run weekly feature
7679
--------------------
7780
``run_weekly_on_days`` specifies the day of the week on which the job should be run.
7881

7982
Days of the week are numbered from 0 to 6 where 0 is Monday and 6 is Sunday.
8083

81-
You can set your job to run every week at particular day, for example at Saturday and Sunday.
84+
You have to combine ``run_weekly_on_days`` with ``run_at_times`` or ``run_every_mins``.
85+
86+
You can set your job to run every week at particular day, for example at Saturday and Sunday at 6:30.
8287

8388
.. code-block:: python
8489
8590
class MyCronJob(CronJobBase):
8691
RUN_WEEKLY_ON_DAYS = [0, 6]
87-
schedule = Schedule(run_weekly_on_days=RUN_WEEKLY_ON_DAYS)
92+
RUN_AT_TIMES = ['6:30']
93+
schedule = Schedule(run_weekly_on_days=RUN_WEEKLY_ON_DAYS, run_at_times=RUN_AT_TIMES)
8894
8995
Allowing parallels runs
9096
-----------------------

0 commit comments

Comments
 (0)