docs: expanded schedule example

This commit is contained in:
Ilan
2015-08-08 19:12:47 +02:00
parent e26f1d9ac6
commit d8fd93cc0e
2 changed files with 12 additions and 10 deletions

View File

@@ -32,14 +32,16 @@ You can manage them through the :ref:`admin_page` or directly from your code wit
q_options={'timeout': 30},
schedule_type=Schedule.HOURLY)
# Run a schedule every 5 minutes, starting at 6.
# Run a schedule every 5 minutes, starting at 6 today
# for 2 hours
import arrow
schedule('math.hypot',
3, 4,
schedule_type=Schedule.MINUTES,
minutes = 5,
next_run = arrow.utcnow().replace(hour=18, minute=0))
3, 4,
schedule_type=Schedule.MINUTES,
minutes=5,
repeats=24,
next_run=arrow.utcnow().replace(hour=18, minute=0))
Management Commands
-------------------