Skip to content

Commit

Permalink
docs: expanded schedule example
Browse files Browse the repository at this point in the history
  • Loading branch information
Koed00 committed Aug 8, 2015
1 parent e26f1d9 commit d8fd93c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.rst
Expand Up @@ -162,11 +162,11 @@ Admin page or directly from your code:
import arrow
schedule('math.hypot',
3, 4,
schedule_type=Schedule.MINUTES,
minutes = 5,
repeats= 24,
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))
For more info check the `Schedules <http://django-q.readthedocs.org/en/latest/schedules.html>`__ documentation.

Expand Down
12 changes: 7 additions & 5 deletions docs/schedules.rst
Expand Up @@ -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
-------------------
Expand Down

0 comments on commit d8fd93c

Please sign in to comment.