X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=accounts.py;h=cb41b67147b7c086bbfcc83b01a6d57a01e966a7;hb=1c9b3e2b064f8c60ace707f42f9e164f1d44b10c;hp=a6dd6d269f88685221d099144f35220cad5b7cfd;hpb=3e745a161b33bb6dfa2fcdec593866904d62a153;p=nodemanager.git diff --git a/accounts.py b/accounts.py index a6dd6d2..cb41b67 100644 --- a/accounts.py +++ b/accounts.py @@ -147,7 +147,10 @@ class Worker: def stop(self): self._q.put((self._stop,)) def _stop(self): self._acct.stop() - def is_running(self): self._acct.is_running() + def is_running(self): + status = self._acct.is_running() + if not status: logger.verbose("Worker(%s): is not running" % self.name) + return status def _destroy(self, curr_class): self._acct = None