mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 09:18:12 +08:00
Django ORM broker
This commit is contained in:
+1
-1
@@ -238,7 +238,7 @@ class Sentinel(object):
|
||||
self.reincarnate(self.pusher)
|
||||
# Call scheduler once a minute (or so)
|
||||
counter += cycle
|
||||
if counter == 30:
|
||||
if counter == 30 and Conf.SCHEDULER:
|
||||
counter = 0
|
||||
scheduler(broker=self.broker)
|
||||
# Save current status
|
||||
|
||||
Reference in New Issue
Block a user