@@ -64,27 +64,33 @@ Run monthly feature
64
64
--------------------
65
65
``run_monthly_on_days `` specifies the day of the month on which the job should be run.
66
66
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.
68
70
69
71
.. code-block :: python
70
72
71
73
class MyCronJob (CronJobBase ):
72
74
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 )
74
77
75
78
Run weekly feature
76
79
--------------------
77
80
``run_weekly_on_days `` specifies the day of the week on which the job should be run.
78
81
79
82
Days of the week are numbered from 0 to 6 where 0 is Monday and 6 is Sunday.
80
83
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.
82
87
83
88
.. code-block :: python
84
89
85
90
class MyCronJob (CronJobBase ):
86
91
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 )
88
94
89
95
Allowing parallels runs
90
96
-----------------------
0 commit comments