mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-10 15:40:55 +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.monitor_pid = None
|
||||||
self.pusher_pid = None
|
self.pusher_pid = None
|
||||||
if start:
|
if start:
|
||||||
|
self.start()
|
||||||
|
|
||||||
|
def start(self):
|
||||||
self.spawn_cluster()
|
self.spawn_cluster()
|
||||||
self.guard()
|
self.guard()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user