Download 2.3-archived PDF
Transcript
Celery Documentation, Release 2.3.5
run(*args, **kwargs)
10.33 celery.bin.camqadm
camqadm
class celery.bin.camqadm.AMQPAdmin(*args, **kwargs)
The celery camqadm utility.
connect(conn=None)
run()
say(m)
class celery.bin.camqadm.AMQPAdminCommand(app=None, get_app=None)
run(*args, **options)
class celery.bin.camqadm.AMQShell(*args, **kwargs)
AMQP API Shell.
Parameters
• connect – Function used to connect to the server, must return connection object.
• silent – If True, the commands won’t have annoying output not relevant when running in
non-shell mode.
amqp
Mapping of AMQP API commands and their Spec.
amqp = {‘queue.declare’: <celery.bin.camqadm.Spec object at 0x57eb310>, ‘queue.purge’: <celery.bin.camqadm.Spec obj
builtins = {‘exit’: ‘do_exit’, ‘EOF’: ‘do_exit’, ‘help’: ‘do_help’}
chan = None
completenames(text, *ignored)
Return all commands starting with text, for tab-completion.
conn = None
counter = 1
default(line)
dispatch(cmd, argline)
Dispatch and execute the command.
Lookup order is: builtins -> amqp.
display_command_help(cmd, short=False)
do_exit(*args)
The “exit” command.
do_help(*args)
get_amqp_api_command(cmd, arglist)
With a command name and a list of arguments, convert the arguments to Python values and find the
corresponding method on the AMQP channel object.
Returns tuple of (method, processed_args).
10.33. celery.bin.camqadm
257