Download 2.5-archived PDF

Transcript
Celery Documentation, Release 2.5.5
options(exchange, routing_key, exchange_type=’direct’, **options)
Creates new option mapping for queue, with required keys present.
format(indent=0, indent_first=True)
Format routing table into string for log dumps.
select_subset(wanted, create_missing=True)
Select subset of the currently defined queues.
Does not return anything: queues not in wanted will be discarded in-place.
Parameters
• wanted – List of wanted queue names.
• create_missing – By default any unknown queues will be added automatically, but if
disabled the occurrence of unknown queues in wanted will raise KeyError.
classmethod with_defaults(queues, default_exchange, default_exchange_type)
Alternate constructor that adds default exchange and exchange type information to queues that does not
have any.
12.3.3 TaskPublisher
class celery.app.amqp.TaskPublisher(*args, **kwargs)
auto_declare = False
declare()
delay_task(task_name, task_args=None, task_kwargs=None, countdown=None, eta=None,
task_id=None, taskset_id=None, expires=None, exchange=None, exchange_type=None,
event_dispatcher=None, retry=None, retry_policy=None, queue=None, now=None,
retries=0, chord=None, **kwargs)
Send task message.
retry = False
retry_policy = None
12.4 celery.app.defaults
• celery.app.defaults
12.4.1 celery.app.defaults
Configuration introspection and defaults.
copyright
3. 2009 - 2012 by Ask Solem.
license BSD, see LICENSE for more details.
class celery.app.defaults.Option(default=None, *args, **kwargs)
12.4. celery.app.defaults
257