This document describes Celery 2.4. For development docs, go here.
camqadm
The celery camqadm utility.
AMQP API Shell.
Parameters: |
|
---|
Return all commands starting with text, for tab-completion.
The “exit” command.
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). |
---|
Example:
>>> get_amqp_api_command("queue.delete", ["pobox", "yes", "no"])
(<bound method Channel.queue_delete of
<amqplib.client_0_8.channel.Channel object at 0x...>>,
('testfoo', True, False))
Parse line and execute command.
Parse input line.
Returns: | tuple of three items: (command_name, arglist, original_line) |
---|
E.g:
>>> parseline("queue.delete A 'B' C")
("queue.delete", "A 'B' C", "queue.delete A 'B' C")
What to do with the return value of a command.
Say something to the user. Disabled if silent.
AMQP Command specification.
Used to convert arguments to Python values and display various help and tooltips.
Parameters: |
|
---|
Coerce value for argument at index.
E.g. if args is [(“is_active”, bool)]:
>>> coerce(0, "False")
False
Format the return value of this command in a human-friendly way.
Process list of string arguments to values according to spec.
e.g:
>>> spec = Spec([("queue", str), ("if_unused", bool)])
>>> spec.str_args_to_python("pobox", "true")
("pobox", True)