mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-21 07:38:12 +08:00
Update README.rst
This commit is contained in:
+12
-1
@@ -156,8 +156,19 @@ Admin page or directly from your code:
|
||||
args='2,-2',
|
||||
schedule_type=Schedule.DAILY
|
||||
)
|
||||
|
||||
# Run a task every 5 minutes, starting at 6 today
|
||||
# for 2 hours
|
||||
import arrow
|
||||
|
||||
For more info check `Schedules <http://django-q.readthedocs.org/en/latest/schedules.html>`__
|
||||
schedule('math.hypot',
|
||||
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.
|
||||
|
||||
|
||||
Testing
|
||||
|
||||
Reference in New Issue
Block a user