Exemplo n.º 1
0
	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'
Exemplo n.º 2
0
	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()