示例#1
0
 def handle(self, app, prog, name, remaining_args):
     from celery.bin.camqadm import AMQPAdminCommand
     return AMQPAdminCommand(app=current_celery()).run(*remaining_args)
示例#2
0
 def mon(self):
     from celerymon.bin.celerymon import MonitorCommand
     return MonitorCommand(app=current_celery())
示例#3
0
 def ev(self):
     from celery.bin.celeryev import EvCommand
     return EvCommand(app=current_celery())
示例#4
0
 def handle(self, app, prog, name, remaining_args):
     if not remaining_args:
         remaining_args = ["help"]
     from celery.bin.celeryctl import celeryctl as ctl
     ctl(current_celery()).execute_from_commandline(
             ["%s celeryctl" % prog] + remaining_args)
示例#5
0
 def worker(self):
     from celery.bin.celeryd import WorkerCommand
     return WorkerCommand(app=current_celery())
示例#6
0
 def beat(self):
     from celery.bin.celerybeat import BeatCommand
     return BeatCommand(app=current_celery())
示例#7
0
 def handle(self, app, prog, name, remaining_args):
     from celery.bin.camqadm import AMQPAdminCommand
     return AMQPAdminCommand(app=current_celery()).run(*remaining_args)
示例#8
0
 def handle(self, app, prog, name, remaining_args):
     if not remaining_args:
         remaining_args = ["help"]
     from celery.bin.celeryctl import celeryctl as ctl
     ctl(current_celery()).execute_from_commandline(
             ["%s celeryctl" % prog] + remaining_args)
示例#9
0
 def ev(self):
     from celery.bin.celeryev import EvCommand
     return EvCommand(app=current_celery())
示例#10
0
 def beat(self):
     from celery.bin.celerybeat import BeatCommand
     return BeatCommand(app=current_celery())
示例#11
0
 def worker(self):
     from celery.bin.celeryd import WorkerCommand
     return WorkerCommand(app=current_celery())