| 165 | |
| 166 | {{{ |
| 167 | #!ini |
| 168 | heart_beat.hourly = 17, 18 |
| 169 | }}} |
| 170 | |
| 171 | The goal of this scheduler is to trigger task every hours. You provode minute when you want the task to be executed. Accept comma sparated list of values. Default is no value. |
| 172 | |
| 173 | |
| 174 | {{{ |
| 175 | #!ini |
| 176 | heart_beat.monthly = 15@21h15, 15@21h16 |
| 177 | }}} |
| 178 | |
| 179 | This sceduler trigger task that need to be executed once a month. You provide the day in month and the hour when the task will be launched. The day is the index of the day starting at 1. Accept comma separated value. Default is no value |
| 180 | |
| 181 | |
| 182 | {{{ |
| 183 | #!ini |
| 184 | heart_beat.weekly = 4@21h28, 4@21h29 |
| 185 | }}} |
| 186 | |
| 187 | This sceduler trigger task that need to be executed once a week. You provide the day in week and the hour when the task will be launched. The day is the index of the day starting at 0 (Monday is 0). Accept comma separated value. Default is no value |
| 188 | |
| 189 | ==== Enable/Disable a schedule ==== |
| 190 | |
| 191 | Each schedule can individualy be enabled or disabled. This the configuration for daily scheduler: |
| 192 | |
160 | | This enable or disable the daily trigger. If False, the scheduler will not trigger the task. Default is '''True'''. |
161 | | |
162 | | {{{ |
163 | | #!ini |
164 | | heart_beat.hourly = 17, 18 |
165 | | }}} |
166 | | |
167 | | The goal of this scheduler is to trigger task every hours. You provode minute when you want the task to be executed. Accept comma sparated list of values. Default is no value. |
168 | | |
169 | | {{{ |
170 | | #!ini |
171 | | heart_beat.hourly.enabled = False |
172 | | }}} |
173 | | |
174 | | This enable or disable the daily trigger. If False, the scheduler will not trigger the task. Default is '''True'''. |
175 | | |
176 | | {{{ |
177 | | #!ini |
178 | | heart_beat.monthly = 15@21h15, 15@21h16 |
179 | | }}} |
180 | | |
181 | | This sceduler trigger task that need to be executed once a month. You provide the day in month and the hour when the task will be launched. The day is the index of the day starting at 1. Accept comma separated value. Default is no value |
182 | | |
183 | | {{{ |
184 | | #!ini |
185 | | heart_beat.monthly.enabled = False |
186 | | }}} |
187 | | |
188 | | This enable or disable the daily trigger. If False, the scheduler will not trigger the task. Default is '''True'''. |
189 | | |
190 | | {{{ |
191 | | #!ini |
192 | | heart_beat.weekly = 4@21h28, 4@21h29 |
193 | | }}} |
194 | | |
195 | | This sceduler trigger task that need to be executed once a week. You provide the day in week and the hour when the task will be launched. The day is the index of the day starting at 0 (Monday is 0). Accept comma separated value. Default is no value |
196 | | |
197 | | {{{ |
198 | | #!ini |
199 | | heart_beat.weekly.enabled = False |
200 | | }}} |
201 | | |
202 | | This enable or disable the daily trigger. If False, the scheduler will not trigger the task. Default is '''True'''. |
| 198 | This enable or disable the trigger. If False, the scheduler will not trigger the task. Default is '''True'''. |
| 199 | |
| 200 | ==== Pass argument to a task ==== |
| 201 | |
| 202 | You can pass argument to the task in a per schedule basis. Here an example for daily schedule: |
| 203 | |
| 204 | {{{ |
| 205 | #!ini |
| 206 | hear_beat_daily.arg = Good Morging |
| 207 | }}} |
| 208 | |
| 209 | When the daily schedule will trigger the task, the value of the kay will be passed to the '''wake_up''' call. Parameters can be coma separated multiple value. Default is '''empty''' |
| 210 | |