Skip to content

Commit

Permalink
Merge pull request #165 from thatmattbone/master
Browse files Browse the repository at this point in the history
allow scheduler to schedule all pending tasks
  • Loading branch information
Koed00 committed Apr 24, 2016
2 parents 4e8a034 + 823ca0c commit fb3b595
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_q/cluster.py
Expand Up @@ -544,7 +544,8 @@ def scheduler(broker=None):
# default behavior is to delete a ONCE schedule
if s.schedule_type == s.ONCE:
if s.repeats < 0:
return s.delete()
s.delete()
continue
# but not if it has a positive repeats
s.repeats = 0
# save the schedule
Expand Down

0 comments on commit fb3b595

Please sign in to comment.