Adds cron to docs

This commit is contained in:
Ilan Steemers
2020-06-29 14:01:36 +02:00
parent 5fe5b5fe37
commit c89c23a0cf
3 changed files with 33 additions and 2 deletions
+6
View File
@@ -180,6 +180,12 @@ Admin page or directly from your code:
repeats=24,
next_run=arrow.utcnow().replace(hour=18, minute=0))
# Use a cron expression
schedule('math.hypot',
3, 4,
schedule_type=Schedule.CRON,
cron = '0 22 * * 1-5')
For more info check the `Schedules <https://django-q.readthedocs.org/en/latest/schedules.html>`__ documentation.