@@ -69,7 +69,7 @@ Functions
69
69
:param n: An integer or floating point number indicating the number of
70
70
milliseconds to wait.
71
71
72
- .. py :function :: run_every(callback, h = None , min = None , s = None , ms = None )
72
+ .. py :function :: run_every(callback, days = None , h = None , min = None , s = None , ms = None )
73
73
74
74
Schedule to run a function at the interval specified by the time arguments.
75
75
@@ -78,7 +78,7 @@ Functions
78
78
* As a **Decorator ** - placed on top of the function to schedule.
79
79
For example::
80
80
81
- @run_every(h=1, min=20, s=30, ms=50)
81
+ @run_every(days=1, h=1, min=20, s=30, ms=50)
82
82
def my_function():
83
83
# Do something here
84
84
@@ -89,14 +89,15 @@ Functions
89
89
# Do something here
90
90
run_every(my_function, s=30)
91
91
92
- Each arguments corresponds to a different time unit and they are additive.
92
+ Each argument corresponds to a different time unit and they are additive.
93
93
So ``run_every(min=1, s=30) `` schedules the callback every minute and
94
94
a half.
95
95
96
96
When an exception is thrown inside the callback function it deschedules
97
97
the function. To avoid this you can catch exceptions with ``try/except ``.
98
98
99
99
:param callback: Function to call at the provided interval.
100
+ :param days: Sets the days mark for the scheduling.
100
101
:param h: Sets the hour mark for the scheduling.
101
102
:param min: Sets the minute mark for the scheduling.
102
103
:param s: Sets the second mark for the scheduling.
0 commit comments