celery.bin.celery

The celery umbrella command.

class celery.bin.celery.CeleryCommand(app=None, get_app=None, no_color=False, stdout=None, stderr=None, quiet=False, on_error=None, on_usage_error=None)[源代码]

  • commands = {u’control’: <class ‘celery.bin.celery.control’>, u’status’: <class ‘celery.bin.celery.status’>, u’multi’: <class ‘celery.bin.celery.multi’>, u’shell’: <class ‘celery.bin.celery.shell’>, u’amqp’: <class ‘celery.bin.amqp.amqp’>, u’beat’: <class ‘celery.bin.beat.beat’>, u’graph’: <class ‘celery.bin.graph.graph’>, u’inspect’: <class ‘celery.bin.celery.inspect’>, u’list’: <class ‘celery.bin.celery.list_‘>, u’purge’: <class ‘celery.bin.celery.purge’>, u’migrate’: <class ‘celery.bin.celery.migrate’>, u’call’: <class ‘celery.bin.celery.call’>, u’result’: <class ‘celery.bin.celery.result’>, u’report’: <class ‘celery.bin.celery.report’>, u’worker’: <class ‘celery.bin.worker.worker’>, u’events’: <class ‘celery.bin.events.events’>, u’help’: <class ‘celery.bin.celery.help’>}

  • enable_config_from_cmdline = True

  • execute(command, argv=None)[源代码]

  • execute_from_commandline(argv=None)[源代码]

  • ext_fmt = u’{self.namespace}.commands’

  • classmethod get_command_info(command, indent=0, color=None)[源代码]

  • handle_argv(prog_name, argv)[源代码]

  • classmethod list_commands(indent=0)[源代码]

  • load_extension_commands()

  • namespace = u’celery’

  • on_concurrency_setup()[源代码]

  • on_usage_error(exc, command=None)

  • prepare_prog_name(name)

  • prog_name = u’celery’

  • classmethod register_command(fun, name=None)

  • with_pool_option(argv)[源代码]

celery.bin.celery.main(argv=None)[源代码]