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:
Ilan
2015-07-18 19:41:21 +02:00
parent 05d6ecb7a2
commit e4737d765a
5 changed files with 12 additions and 6 deletions
+1
View File
@@ -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)