Exemple #1
0
    def run_from_argv(self, argv):
        util = celeryctl(app=app)

        util.execute_from_commandline(self.handle_default_options(argv)[1:])
    def run_from_argv(self, argv):
        util = celeryctl(app=app)

        util.execute_from_commandline(self.handle_default_options(argv)[1:])
Exemple #3
0
 def run_from_argv(self, argv):
     util = celeryctl()
     util.execute_from_commandline(argv[1:])
 def run_from_argv(self, argv):
     util = celeryctl()
     util.execute_from_commandline(argv[1:])
Exemple #5
0
    from celerymonitor.bin.celerymond import MonitorCommand
    monitor = MonitorCommand(app=default_app)
except ImportError:
    monitor = None
    MISSING = """                      
You don't have celerymon installed, please install it by running the following command:                                                              
    $ pip install -U celerymon                                   
or if you're still using easy_install (shame on you!)
    $ easy_install -U celerymon
"""


command = camqadm.AMQPAdminCommand(app=default_app)
ev = celeryev.EvCommand(app=default_app)
beat = celerybeat.BeatCommand(app=default_app)
util = celeryctl(app=default_app)
worker = celeryd.WorkerCommand(app=default_app)
class detached(celeryd_detach.detached_celeryd):
    execv_argv = [os.path.abspath(sys.argv[0]), "celeryd"]

OPTIONS = {
    'camqadm':(
        'Celery AMQP Administration Tool using the AMQP API.',
        command.get_options(),
        lambda args,options: command.run(*args, **options)),
    'celerybeat':(
        'Runs the Celery periodic task scheduler',
        beat.get_options(),
        lambda args,options: beat.run(*args, **options)),
    'celeryctl':(
        "celery control utility",