celery.conf.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Configuration - celery.conf &mdash; Celery v0.2.14 documentation</title>
  7. <link rel="stylesheet" href="../static/agogo.css" type="text/css" />
  8. <link rel="stylesheet" href="../static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '0.2.14',
  13. COLLAPSE_MODINDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../static/jquery.js"></script>
  19. <script type="text/javascript" src="../static/doctools.js"></script>
  20. <link rel="top" title="Celery v0.2.14 documentation" href="../index.html" />
  21. <link rel="up" title="Module API Reference" href="index.html" />
  22. <link rel="next" title="Datastructures - celery.datastructures" href="celery.datastructures.html" />
  23. <link rel="prev" title="Backend: Tokyo Tyrant - celery.backends.tyrant" href="celery.backends.tyrant.html" />
  24. </head>
  25. <body>
  26. <div class="header-wrapper">
  27. <div class="header">
  28. <h1><a href="../index.html">Celery v0.2.14 documentation</a></h1>
  29. <div class="rel">
  30. <a href="../genindex.html" title="General Index"
  31. accesskey="I">index</a> |
  32. <a href="../modindex.html" title="Global Module Index"
  33. accesskey="M">modules</a> |
  34. <a href="celery.datastructures.html" title="Datastructures - celery.datastructures"
  35. accesskey="N">next</a> |
  36. <a href="celery.backends.tyrant.html" title="Backend: Tokyo Tyrant - celery.backends.tyrant"
  37. accesskey="P">previous</a>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="content-wrapper">
  42. <div class="content">
  43. <div class="document">
  44. <div class="documentwrapper">
  45. <div class="bodywrapper">
  46. <div class="body">
  47. <div class="section" id="module-celery.conf">
  48. <h1>Configuration - celery.conf<a class="headerlink" href="#module-celery.conf" title="Permalink to this headline">¶</a></h1>
  49. <p>celery.conf</p>
  50. <dl class="data">
  51. <dt id="celery.conf.AMQP_CONSUMER_ROUTING_KEY">
  52. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_CONSUMER_ROUTING_KEY</tt><a class="headerlink" href="#celery.conf.AMQP_CONSUMER_ROUTING_KEY" title="Permalink to this definition">¶</a></dt>
  53. <dd><dl class="data">
  54. <dt id="celery.conf.AMQP_CONSUMER_QUEUE">
  55. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_CONSUMER_QUEUE</tt><a class="headerlink" href="#celery.conf.AMQP_CONSUMER_QUEUE" title="Permalink to this definition">¶</a></dt>
  56. <dd>The name of the AMQP queue.</dd></dl>
  57. </dd></dl>
  58. <dl class="data">
  59. <dt id="celery.conf.AMQP_EXCHANGE">
  60. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_EXCHANGE</tt><a class="headerlink" href="#celery.conf.AMQP_EXCHANGE" title="Permalink to this definition">¶</a></dt>
  61. <dd><dl class="data">
  62. <dt id="celery.conf.AMQP_EXCHANGE_TYPE">
  63. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_EXCHANGE_TYPE</tt><a class="headerlink" href="#celery.conf.AMQP_EXCHANGE_TYPE" title="Permalink to this definition">¶</a></dt>
  64. <dd></dd></dl>
  65. <p>The type of exchange. If the exchange type is <tt class="docutils literal"><span class="pre">direct</span></tt>, all messages
  66. receives all tasks. However, if the exchange type is <tt class="docutils literal"><span class="pre">topic</span></tt>, you can
  67. route e.g some tasks to one server, and others to the rest.
  68. See <a href="#id1"><span class="problematic" id="id2">`Exchange types and the effect of bindings`_</span></a>.</p>
  69. </dd></dl>
  70. <dl class="data">
  71. <dt>
  72. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_EXCHANGE_TYPE</tt></dt>
  73. <dd><dl class="data">
  74. <dt id="celery.conf.AMQP_PUBLISHER_ROUTING_KEY">
  75. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_PUBLISHER_ROUTING_KEY</tt><a class="headerlink" href="#celery.conf.AMQP_PUBLISHER_ROUTING_KEY" title="Permalink to this definition">¶</a></dt>
  76. <dd>The default AMQP routing key used when publishing tasks.</dd></dl>
  77. </dd></dl>
  78. <dl class="data">
  79. <dt>
  80. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_PUBLISHER_ROUTING_KEY</tt></dt>
  81. <dd><dl class="data">
  82. <dt>
  83. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_CONSUMER_ROUTING_KEY</tt></dt>
  84. <dd>The AMQP routing key used when consuming tasks.</dd></dl>
  85. </dd></dl>
  86. <dl class="data">
  87. <dt id="celery.conf.DAEMON_CONCURRENCY">
  88. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_CONCURRENCY</tt><a class="headerlink" href="#celery.conf.DAEMON_CONCURRENCY" title="Permalink to this definition">¶</a></dt>
  89. <dd><dl class="data">
  90. <dt>
  91. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_EXCHANGE</tt></dt>
  92. <dd>Name of the AMQP exchange.</dd></dl>
  93. </dd></dl>
  94. <dl class="data">
  95. <dt id="celery.conf.DAEMON_LOG_FILE">
  96. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_LOG_FILE</tt><a class="headerlink" href="#celery.conf.DAEMON_LOG_FILE" title="Permalink to this definition">¶</a></dt>
  97. <dd><dl class="data">
  98. <dt id="celery.conf.DAEMON_LOG_LEVEL">
  99. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_LOG_LEVEL</tt><a class="headerlink" href="#celery.conf.DAEMON_LOG_LEVEL" title="Permalink to this definition">¶</a></dt>
  100. <dd>Celery daemon log level, can be any of <tt class="docutils literal"><span class="pre">DEBUG</span></tt>, <tt class="docutils literal"><span class="pre">INFO</span></tt>, <tt class="docutils literal"><span class="pre">WARNING</span></tt>,
  101. <tt class="docutils literal"><span class="pre">ERROR</span></tt>, <tt class="docutils literal"><span class="pre">CRITICAL</span></tt>, or <tt class="docutils literal"><span class="pre">FATAL</span></tt>. See the <tt class="xref docutils literal"><span class="pre">logging</span></tt> module
  102. for more information.</dd></dl>
  103. </dd></dl>
  104. <dl class="data">
  105. <dt>
  106. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_LOG_LEVEL</tt></dt>
  107. <dd><dl class="data">
  108. <dt id="celery.conf.QUEUE_WAKEUP_AFTER">
  109. <tt class="descclassname">celery.conf.</tt><tt class="descname">QUEUE_WAKEUP_AFTER</tt><a class="headerlink" href="#celery.conf.QUEUE_WAKEUP_AFTER" title="Permalink to this definition">¶</a></dt>
  110. <dd>The time (in seconds) the celery worker should sleep when there&#8217;s
  111. no messages left on the queue. After the time is slept, the worker
  112. wakes up and checks the queue again.</dd></dl>
  113. </dd></dl>
  114. <dl class="data">
  115. <dt id="celery.conf.DAEMON_PID_FILE">
  116. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_PID_FILE</tt><a class="headerlink" href="#celery.conf.DAEMON_PID_FILE" title="Permalink to this definition">¶</a></dt>
  117. <dd><dl class="data">
  118. <dt>
  119. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_CONCURRENCY</tt></dt>
  120. <dd>The number of concurrent worker processes, executing tasks simultaneously.</dd></dl>
  121. </dd></dl>
  122. <dl class="data">
  123. <dt id="celery.conf.DEFAULT_REAP_TIMEOUT">
  124. <tt class="descclassname">celery.conf.</tt><tt class="descname">DEFAULT_REAP_TIMEOUT</tt><a class="headerlink" href="#celery.conf.DEFAULT_REAP_TIMEOUT" title="Permalink to this definition">¶</a></dt>
  125. <dd><dl class="data">
  126. <dt id="celery.conf.LOG_LEVELS">
  127. <tt class="descclassname">celery.conf.</tt><tt class="descname">LOG_LEVELS</tt><a class="headerlink" href="#celery.conf.LOG_LEVELS" title="Permalink to this definition">¶</a></dt>
  128. <dd>Mapping of log level names to <tt class="xref docutils literal"><span class="pre">logging</span></tt> module constants.</dd></dl>
  129. </dd></dl>
  130. <dl class="data">
  131. <dt id="celery.conf.EMPTY_MSG_EMIT_EVERY">
  132. <tt class="descclassname">celery.conf.</tt><tt class="descname">EMPTY_MSG_EMIT_EVERY</tt><a class="headerlink" href="#celery.conf.EMPTY_MSG_EMIT_EVERY" title="Permalink to this definition">¶</a></dt>
  133. <dd><dl class="data">
  134. <dt>
  135. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_PID_FILE</tt></dt>
  136. <dd>Full path to the daemon pidfile.</dd></dl>
  137. </dd></dl>
  138. <dl class="data">
  139. <dt id="celery.conf.LOG_FORMAT">
  140. <tt class="descclassname">celery.conf.</tt><tt class="descname">LOG_FORMAT</tt><a class="headerlink" href="#celery.conf.LOG_FORMAT" title="Permalink to this definition">¶</a></dt>
  141. <dd><dl class="data">
  142. <dt>
  143. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_LOG_FILE</tt></dt>
  144. <dd>The path to the deamon log file (if not set, <tt class="docutils literal"><span class="pre">stderr</span></tt> is used).</dd></dl>
  145. </dd></dl>
  146. <dl class="data">
  147. <dt>
  148. <tt class="descclassname">celery.conf.</tt><tt class="descname">LOG_LEVELS</tt></dt>
  149. <dd><dl class="data">
  150. <dt>
  151. <tt class="descclassname">celery.conf.</tt><tt class="descname">LOG_FORMAT</tt></dt>
  152. <dd>The format to use for log messages.
  153. Default is <tt class="docutils literal"><span class="pre">[%(asctime)s:</span> <span class="pre">%(levelname)s/%(processName)s]</span> <span class="pre">%(message)s</span></tt></dd></dl>
  154. </dd></dl>
  155. <dl class="data">
  156. <dt>
  157. <tt class="descclassname">celery.conf.</tt><tt class="descname">QUEUE_WAKEUP_AFTER</tt></dt>
  158. <dd><dl class="data">
  159. <dt>
  160. <tt class="descclassname">celery.conf.</tt><tt class="descname">EMPTY_MSG_EMIT_EVERY</tt></dt>
  161. <dd>How often the celery daemon should write a log message saying there are no
  162. messages in the queue. If this is <tt class="xref docutils literal"><span class="pre">None</span></tt> or <tt class="docutils literal"><span class="pre">0</span></tt>, it will never print
  163. this message.</dd></dl>
  164. </dd></dl>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. <div class="sidebar">
  171. <h3>Contents</h3>
  172. <ul class="current">
  173. <li class="toctree-l1"><a class="reference external" href="../introduction.html">celery - Distributed Task Queue for Django.</a></li>
  174. <li class="toctree-l1"><a class="reference external" href="../faq.html">Frequently Asked Questions</a></li>
  175. <li class="toctree-l1 current"><a class="reference external" href="index.html">Module API Reference</a><ul class="current">
  176. <li class="toctree-l2"><a class="reference external" href="celery.task.html">Tasks - celery.task</a></li>
  177. <li class="toctree-l2"><a class="reference external" href="celery.result.html">Task Result - celery.result</a></li>
  178. <li class="toctree-l2"><a class="reference external" href="celery.registry.html">Task Registry - celery.registry</a></li>
  179. <li class="toctree-l2"><a class="reference external" href="celery.discovery.html">Task Discovery - celery.discovery</a></li>
  180. <li class="toctree-l2"><a class="reference external" href="celery.worker.html">Multiprocessing Worker - celery.worker</a></li>
  181. <li class="toctree-l2"><a class="reference external" href="celery.backends.html">Backends - celery.backends</a></li>
  182. <li class="toctree-l2"><a class="reference external" href="celery.backends.base.html">Backend: Base - celery.backends.base</a></li>
  183. <li class="toctree-l2"><a class="reference external" href="celery.backends.database.html">Backend: Database - celery.backends.database</a></li>
  184. <li class="toctree-l2"><a class="reference external" href="celery.backends.cache.html">Backend: Cache - celery.backends.cache</a></li>
  185. <li class="toctree-l2"><a class="reference external" href="celery.backends.tyrant.html">Backend: Tokyo Tyrant - celery.backends.tyrant</a></li>
  186. <li class="toctree-l2 current"><a class="current reference external" href="">Configuration - celery.conf</a></li>
  187. <li class="toctree-l2"><a class="reference external" href="celery.datastructures.html">Datastructures - celery.datastructures</a></li>
  188. <li class="toctree-l2"><a class="reference external" href="celery.log.html">Logging - celery.log</a></li>
  189. <li class="toctree-l2"><a class="reference external" href="celery.managers.html">Django Model Managers - celery.managers</a></li>
  190. <li class="toctree-l2"><a class="reference external" href="celery.models.html">Django Models - celery.models</a></li>
  191. <li class="toctree-l2"><a class="reference external" href="celery.messaging.html">Messaging - celery.messaging</a></li>
  192. <li class="toctree-l2"><a class="reference external" href="celery.platform.html">Platform Specific - celery.platform</a></li>
  193. <li class="toctree-l2"><a class="reference external" href="celery.timer.html">Timers - celery.timer</a></li>
  194. <li class="toctree-l2"><a class="reference external" href="celery.bin.celeryd.html">Celery Worker Daemon - celery.bin.celeryd</a></li>
  195. </ul>
  196. </li>
  197. </ul>
  198. <h3 style="margin-top: 1.5em;">Search</h3>
  199. <form class="search" action="../search.html" method="get">
  200. <input type="text" name="q" size="18" />
  201. <input type="submit" value="Go" />
  202. <input type="hidden" name="check_keywords" value="yes" />
  203. <input type="hidden" name="area" value="default" />
  204. </form>
  205. <p class="searchtip" style="font-size: 90%">
  206. Enter search terms or a module, class or function name.
  207. </p>
  208. </div>
  209. <div class="clearer"></div>
  210. </div>
  211. </div>
  212. <div class="footer-wrapper">
  213. <div class="footer">
  214. <div class="left">
  215. <a href="../genindex.html" title="General Index"
  216. >index</a> |
  217. <a href="../modindex.html" title="Global Module Index"
  218. >modules</a> |
  219. <a href="celery.datastructures.html" title="Datastructures - celery.datastructures"
  220. >next</a> |
  221. <a href="celery.backends.tyrant.html" title="Backend: Tokyo Tyrant - celery.backends.tyrant"
  222. >previous</a>
  223. <br/>
  224. <a href="../sources/reference/celery.conf.txt"
  225. rel="nofollow">Show Source</a>
  226. </div>
  227. <div class="right">
  228. &copy; Copyright 2009, Ask Solem.<br/>
  229. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.1.
  230. </div>
  231. <div class="clearer"></div>
  232. </div>
  233. </div>
  234. </body>
  235. </html>