celery.conf.rst 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ============================
  2. Configuration - celery.conf
  3. ============================
  4. .. currentmodule:: celery.conf
  5. .. automodule:: celery.conf
  6. :members:
  7. .. data:: AMQP_EXCHANGE
  8. The AMQP exchange.
  9. .. data:: AMQP_ROUTING_KEY
  10. The AMQP routing key.
  11. .. data:: AMQP_CONSUMER_QUEUE
  12. The name of the AMQP queue.
  13. .. data:: DAEMON_CONCURRENCY
  14. The number of worker processes, that should work simultaenously.
  15. .. data:: DAEMON_PID_FILE
  16. Full path to the daemon pid file.
  17. .. data:: EMPTY_MSG_EMIT_EVERY
  18. How often the celery daemon should write a log message saying there are no
  19. messages in the queue. If this is ``None`` or ``0``, it will never print
  20. this message.
  21. .. data:: QUEUE_WAKEUP_AFTER
  22. The time (in seconds) the celery daemon should sleep when there are no messages
  23. left on the queue. After the time is slept, the worker wakes up and
  24. checks the queue again.
  25. .. data:: DAEMON_LOG_LEVEL
  26. Celery daemon log level, could be any of ``DEBUG``, ``INFO``, ``WARNING``,
  27. ``ERROR``, ``CRITICAL``, or ``FATAL``.
  28. .. data:: DAEMON_LOG_FILE
  29. The path to the deamon log file (if not set, ``stderr`` is used).
  30. .. data:: LOG_FORMAT
  31. The format to use for log messages.
  32. Default is ``[%(asctime)s: %(levelname)s/%(processName)s] %(message)s``
  33. .. data:: LOG_LEVELS
  34. Mapping of log level names to ``logging`` module constants.