示例#1
0
 def handle(self, app, prog, name, remaining_args):
     if not remaining_args:
         remaining_args = ["help"]
     from celery.bin.celeryctl import celeryctl as ctl
     celery = Celery(app)
     ctl(celery).execute_from_commandline(
             ["%s celeryctl" % prog] + remaining_args)
示例#2
0
 def handle(self, app, prog, name, remaining_args):
     if not remaining_args:
         remaining_args = ["help"]
     from celery.bin.celeryctl import celeryctl as ctl
     celery = Celery(app)
     ctl(celery).execute_from_commandline(["%s celeryctl" % prog] +
                                          remaining_args)
示例#3
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().execute_from_commandline(remaining_args)