def handle_noargs(self, **options): from django_queue.daemon import main from django_queue.remote import Remote r = Remote() if r._is_connected(): print 'Stopping queue daemon' r.exit() else: print 'Queue daemon not running'
def handle_noargs(self, **options): from django_queue.daemon import main from django_queue.remote import Remote r = Remote() if r._is_connected(): print 'Queue daemon already running' else: del r main()