mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-11 08:50:56 +08:00
Sentinel now has a start() function. Will still autostart on init, but can be overriden with start=False
This commit is contained in:
@@ -169,6 +169,9 @@ class Sentinel(object):
|
||||
self.monitor_pid = None
|
||||
self.pusher_pid = None
|
||||
if start:
|
||||
self.start()
|
||||
|
||||
def start(self):
|
||||
self.spawn_cluster()
|
||||
self.guard()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user