mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 22:58:12 +08:00
Schedule name is optional
For backwards compatibility the schedule name is an optional keyword in the `schedule` function. Adjusted docs accordingly
This commit is contained in:
@@ -20,6 +20,7 @@ def test_scheduler(r):
|
||||
r.delete(list_key)
|
||||
schedule = create_schedule('math.copysign',
|
||||
1, -1,
|
||||
name='test math',
|
||||
hook='django_q.tests.tasks.result',
|
||||
schedule_type=Schedule.HOURLY,
|
||||
repeats=1)
|
||||
|
||||
Reference in New Issue
Block a user