celery.conf.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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.3.10 (unstable) 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.3.10 (unstable)',
  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.3.10 (unstable) 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.3.10 (unstable) 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_CONNECTION_TIMEOUT">
  52. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_CONNECTION_TIMEOUT</tt><a class="headerlink" href="#celery.conf.AMQP_CONNECTION_TIMEOUT" title="Permalink to this definition">¶</a></dt>
  53. <dd><dl class="data">
  54. <dt id="celery.conf.SEND_CELERY_TASK_ERROR_EMAILS">
  55. <tt class="descclassname">celery.conf.</tt><tt class="descname">SEND_CELERY_TASK_ERROR_EMAILS</tt><a class="headerlink" href="#celery.conf.SEND_CELERY_TASK_ERROR_EMAILS" title="Permalink to this definition">¶</a></dt>
  56. <dd>If set to <tt class="xref docutils literal"><span class="pre">True</span></tt>, errors in tasks will be sent to admins by e-mail.
  57. If unset, it will send the e-mails if DEBUG is False.</dd></dl>
  58. </dd></dl>
  59. <dl class="data">
  60. <dt id="celery.conf.AMQP_CONSUMER_QUEUE">
  61. <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>
  62. <dd><dl class="data">
  63. <dt>
  64. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_CONNECTION_TIMEOUT</tt></dt>
  65. <dd>The timeout in seconds before we give up establishing a connection
  66. to the AMQP server.</dd></dl>
  67. </dd></dl>
  68. <dl class="data">
  69. <dt id="celery.conf.AMQP_CONSUMER_ROUTING_KEY">
  70. <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>
  71. <dd><dl class="data">
  72. <dt>
  73. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_CONSUMER_QUEUE</tt></dt>
  74. <dd>The name of the AMQP queue.</dd></dl>
  75. </dd></dl>
  76. <dl class="data">
  77. <dt id="celery.conf.AMQP_EXCHANGE">
  78. <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>
  79. <dd><dl class="data">
  80. <dt id="celery.conf.AMQP_EXCHANGE_TYPE">
  81. <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>
  82. <dd></dd></dl>
  83. <p>The type of exchange. If the exchange type is <tt class="docutils literal"><span class="pre">direct</span></tt>, all messages
  84. receives all tasks. However, if the exchange type is <tt class="docutils literal"><span class="pre">topic</span></tt>, you can
  85. route e.g. some tasks to one server, and others to the rest.
  86. See <a class="reference external" href="http://bit.ly/wpamqpexchanges">Exchange types and the effect of bindings</a>.</p>
  87. </dd></dl>
  88. <dl class="data">
  89. <dt>
  90. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_EXCHANGE_TYPE</tt></dt>
  91. <dd><dl class="data">
  92. <dt id="celery.conf.AMQP_PUBLISHER_ROUTING_KEY">
  93. <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>
  94. <dd>The default AMQP routing key used when publishing tasks.</dd></dl>
  95. </dd></dl>
  96. <dl class="data">
  97. <dt>
  98. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_PUBLISHER_ROUTING_KEY</tt></dt>
  99. <dd><dl class="data">
  100. <dt>
  101. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_CONSUMER_ROUTING_KEY</tt></dt>
  102. <dd>The AMQP routing key used when consuming tasks.</dd></dl>
  103. </dd></dl>
  104. <dl class="data">
  105. <dt id="celery.conf.DAEMON_CONCURRENCY">
  106. <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>
  107. <dd><dl class="data">
  108. <dt>
  109. <tt class="descclassname">celery.conf.</tt><tt class="descname">AMQP_EXCHANGE</tt></dt>
  110. <dd>Name of the AMQP exchange.</dd></dl>
  111. </dd></dl>
  112. <dl class="data">
  113. <dt id="celery.conf.DAEMON_LOG_FILE">
  114. <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>
  115. <dd><dl class="data">
  116. <dt id="celery.conf.DAEMON_LOG_LEVEL">
  117. <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>
  118. <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>,
  119. <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
  120. for more information.</dd></dl>
  121. </dd></dl>
  122. <dl class="data">
  123. <dt>
  124. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_LOG_LEVEL</tt></dt>
  125. <dd><dl class="data">
  126. <dt id="celery.conf.DAEMON_PID_FILE">
  127. <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>
  128. <dd>Full path to the daemon pidfile.</dd></dl>
  129. </dd></dl>
  130. <dl class="data">
  131. <dt>
  132. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_PID_FILE</tt></dt>
  133. <dd><dl class="data">
  134. <dt>
  135. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_CONCURRENCY</tt></dt>
  136. <dd>The number of concurrent worker processes, executing tasks simultaneously.</dd></dl>
  137. </dd></dl>
  138. <dl class="data">
  139. <dt id="celery.conf.DEFAULT_STATISTICS_COLLECT_INTERVAL">
  140. <tt class="descclassname">celery.conf.</tt><tt class="descname">DEFAULT_STATISTICS_COLLECT_INTERVAL</tt><a class="headerlink" href="#celery.conf.DEFAULT_STATISTICS_COLLECT_INTERVAL" title="Permalink to this definition">¶</a></dt>
  141. <dd><dl class="data">
  142. <dt id="celery.conf.LOG_LEVELS">
  143. <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>
  144. <dd>Mapping of log level names to <tt class="xref docutils literal"><span class="pre">logging</span></tt> module constants.</dd></dl>
  145. </dd></dl>
  146. <dl class="data">
  147. <dt id="celery.conf.LOG_FORMAT">
  148. <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>
  149. <dd><dl class="data">
  150. <dt>
  151. <tt class="descclassname">celery.conf.</tt><tt class="descname">DAEMON_LOG_FILE</tt></dt>
  152. <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>
  153. </dd></dl>
  154. <dl class="data">
  155. <dt>
  156. <tt class="descclassname">celery.conf.</tt><tt class="descname">LOG_LEVELS</tt></dt>
  157. <dd><dl class="data">
  158. <dt>
  159. <tt class="descclassname">celery.conf.</tt><tt class="descname">LOG_FORMAT</tt></dt>
  160. <dd>The format to use for log messages.
  161. 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>
  162. </dd></dl>
  163. <dl class="data">
  164. <dt>
  165. <tt class="descclassname">celery.conf.</tt><tt class="descname">SEND_CELERY_TASK_ERROR_EMAILS</tt></dt>
  166. <dd></dd></dl>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. <div class="sidebar">
  173. <h3>Contents</h3>
  174. <ul class="current">
  175. <li class="toctree-l1"><a class="reference external" href="../introduction.html">celery - Distributed Task Queue for Django.</a></li>
  176. <li class="toctree-l1"><a class="reference external" href="../faq.html">Frequently Asked Questions</a></li>
  177. <li class="toctree-l1 current"><a class="reference external" href="index.html">Module API Reference</a><ul class="current">
  178. <li class="toctree-l2"><a class="reference external" href="celery.task.html">Tasks - celery.task</a></li>
  179. <li class="toctree-l2"><a class="reference external" href="celery.result.html">Task Result - celery.result</a></li>
  180. <li class="toctree-l2"><a class="reference external" href="celery.registry.html">Task Registry - celery.registry</a></li>
  181. <li class="toctree-l2"><a class="reference external" href="celery.discovery.html">Task Discovery - celery.discovery</a></li>
  182. <li class="toctree-l2"><a class="reference external" href="celery.worker.html">Multiprocessing Worker - celery.worker</a></li>
  183. <li class="toctree-l2"><a class="reference external" href="celery.pool.html">Task Pool - celery.pool</a></li>
  184. <li class="toctree-l2"><a class="reference external" href="celery.backends.html">Backends - celery.backends</a></li>
  185. <li class="toctree-l2"><a class="reference external" href="celery.backends.base.html">Backend: Base - celery.backends.base</a></li>
  186. <li class="toctree-l2"><a class="reference external" href="celery.backends.database.html">Backend: Database - celery.backends.database</a></li>
  187. <li class="toctree-l2"><a class="reference external" href="celery.backends.cache.html">Backend: Cache - celery.backends.cache</a></li>
  188. <li class="toctree-l2"><a class="reference external" href="celery.backends.tyrant.html">Backend: Tokyo Tyrant - celery.backends.tyrant</a></li>
  189. <li class="toctree-l2 current"><a class="current reference external" href="">Configuration - celery.conf</a></li>
  190. <li class="toctree-l2"><a class="reference external" href="celery.datastructures.html">Datastructures - celery.datastructures</a></li>
  191. <li class="toctree-l2"><a class="reference external" href="celery.log.html">Logging - celery.log</a></li>
  192. <li class="toctree-l2"><a class="reference external" href="celery.managers.html">Django Model Managers - celery.managers</a></li>
  193. <li class="toctree-l2"><a class="reference external" href="celery.models.html">Django Models - celery.models</a></li>
  194. <li class="toctree-l2"><a class="reference external" href="celery.messaging.html">Messaging - celery.messaging</a></li>
  195. <li class="toctree-l2"><a class="reference external" href="celery.timer.html">Timers - celery.timer</a></li>
  196. <li class="toctree-l2"><a class="reference external" href="celery.bin.celeryd.html">Celery Worker Daemon - celery.bin.celeryd</a></li>
  197. </ul>
  198. </li>
  199. <li class="toctree-l1"><a class="reference external" href="../changelog.html">Change history</a></li>
  200. </ul>
  201. <h3 style="margin-top: 1.5em;">Search</h3>
  202. <form class="search" action="../search.html" method="get">
  203. <input type="text" name="q" size="18" />
  204. <input type="submit" value="Go" />
  205. <input type="hidden" name="check_keywords" value="yes" />
  206. <input type="hidden" name="area" value="default" />
  207. </form>
  208. <p class="searchtip" style="font-size: 90%">
  209. Enter search terms or a module, class or function name.
  210. </p>
  211. </div>
  212. <div class="clearer"></div>
  213. </div>
  214. </div>
  215. <div class="footer-wrapper">
  216. <div class="footer">
  217. <div class="left">
  218. <a href="../genindex.html" title="General Index"
  219. >index</a> |
  220. <a href="../modindex.html" title="Global Module Index"
  221. >modules</a> |
  222. <a href="celery.datastructures.html" title="Datastructures - celery.datastructures"
  223. >next</a> |
  224. <a href="celery.backends.tyrant.html" title="Backend: Tokyo Tyrant - celery.backends.tyrant"
  225. >previous</a>
  226. <br/>
  227. <a href="../sources/reference/celery.conf.txt"
  228. rel="nofollow">Show Source</a>
  229. </div>
  230. <div class="right">
  231. &copy; Copyright 2009, Ask Solem.<br/>
  232. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.1.
  233. </div>
  234. <div class="clearer"></div>
  235. </div>
  236. </div>
  237. </body>
  238. </html>