From 3b7682411caf1a42bc288adaf9708badc13648b9 Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Sat, 27 Jun 2015 01:43:11 +0200 Subject: [PATCH] Sentinel now has a start() function. Will still autostart on init, but can be overriden with start=False --- django_q/core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/django_q/core.py b/django_q/core.py index fb074bc..bc39973 100644 --- a/django_q/core.py +++ b/django_q/core.py @@ -169,8 +169,11 @@ class Sentinel(object): self.monitor_pid = None self.pusher_pid = None if start: - self.spawn_cluster() - self.guard() + self.start() + + def start(self): + self.spawn_cluster() + self.guard() def spawn_process(self, target, *args): # This is just for PyCharm to not crash. Ignore it.