mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 07:48:12 +08:00
Adds cron to docs
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user