celery_1.0_released.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="keywords" content="task queue, job queue, asynchronous, rabbitmq, amqp,
  6. redis, django, python, webhooks, queue, distributed">
  7. <meta name="description" content="open source distributed task queue" >
  8. <link rel="icon" type="image/png" href="favicon.png">
  9. <meta name="viewport" content="width=320, user-scalable=no">
  10. <link rel="apple-touch-icon" href="favicon_64.png"/>
  11. <title>Celery - The Distributed Task Queue</title>
  12. <link rel="stylesheet" href="main.css"/>
  13. <link rel="stylesheet" href="trac.css"/>
  14. </head>
  15. <body>
  16. <div id="navbar">
  17. <div class="iStretch">
  18. <div class="link" id="current"><a href="/">Home</a></div>
  19. <div class="link"><a href="http://github.com/ask/celery">Code</a></div>
  20. <div class="link"><a href="docs/">Documentation</a></div>
  21. <div class="link"><a href="http://ask.github.com/celery/getting-started/">Tutorials</a></div>
  22. <div class="link"><a href="http://pypi.python.org/pypi/celery">Download</a></div>
  23. </div>
  24. </div>
  25. <div class="iStretch">
  26. <div id="topcontainer">
  27. <ul>
  28. <li>Background Processing
  29. <li>Distributed
  30. <li>Asynchronous/Synchronous
  31. <li>Concurrency
  32. <li>Periodic Tasks
  33. <li>Retries
  34. </ul>
  35. </div>
  36. <div id="contentcontainer">
  37. <div class="column">
  38. <h1>Celery 1.0 has been released!</a></h1>
  39. <p>We&#8217;re happy to announce the release of Celery 1.0.</p>
  40. <div class="section" id="what-is-it">
  41. <h2>What is it?</h2>
  42. <p>Celery is a task queue/job queue based on distributed message passing.
  43. It is focused on real-time operation, but supports scheduling as well.</p>
  44. <p>The execution units, called tasks, are executed concurrently on one or
  45. more worker servers. Tasks can execute asynchronously (in the background) or synchronously
  46. (wait until ready).</p>
  47. <p>Celery is already used in production to process millions of tasks a day.</p>
  48. <p>Celery was originally created for use with Django, but is now usable
  49. from any Python project. It can
  50. also operate with other languages via webhooks.</p>
  51. <p>The recommended message broker is <a class="reference external" href="http://rabbitmq.org">RabbitMQ</a>, but support for Redis or
  52. database is also available.</p>
  53. <div class="section" id="features">
  54. <h3>Features</h3>
  55. <p>See <a class="reference external" href="http://ask.github.com/celery/getting-started/introduction.html#features">http://ask.github.com/celery/getting-started/introduction.html#features</a></p>
  56. </div>
  57. </div>
  58. <div class="section" id="stable-api">
  59. <h2>Stable API</a></h2>
  60. <p>From this version on the public API is considered stable. This means there won&#8217;t
  61. be any backwards incompatible changes in new minor versions. Changes to the
  62. API will be deprecated; so, for example, if we decided to remove a function
  63. that existed in Celery 1.0:</p>
  64. <ul class="simple">
  65. <li>Celery 1.2 will contain a backwards-compatible replica of the function which
  66. will raise a <tt class="docutils literal"><span class="pre">PendingDeprecationWarning</span></tt>.
  67. This warning is silent by default; you need to explicitly turn on display
  68. of these warnings.</li>
  69. <li>Celery 1.4 will contain the backwards-compatible replica, but the warning
  70. will be promoted to a full-fledged <tt class="docutils literal"><span class="pre">DeprecationWarning</span></tt>. This warning
  71. is loud by default, and will likely be quite annoying.</li>
  72. <li>Celery 1.6 will remove the feature outright.</li>
  73. </ul>
  74. <p>See the <a class="reference external" href="http://ask.github.com/celery/internals/deprecation.html">Celery Deprecation Timeline</a> for a list of pending removals.</p>
  75. </div>
  76. <div class="section" id="what-s-new">
  77. <h2>What&#8217;s new?</h2>
  78. <ul>
  79. <li><p class="first">Task decorators</p>
  80. <blockquote>
  81. <p>Write tasks as regular functions and decorate them.
  82. There are both <tt class="xref docutils literal"><span class="pre">task()</span></tt>, and <tt class="xref docutils literal"><span class="pre">periodic_task()</span></tt> decorators.</p>
  83. </blockquote>
  84. </li>
  85. <li><p class="first">Tasks are automatically registered</p>
  86. <blockquote>
  87. <p>Registering the tasks manually was getting tedious, so now you don&#8217;t have
  88. to anymore. You can still do it manually if you need to, just
  89. disable <tt class="xref docutils literal"><span class="pre">Task.autoregister</span></tt>. The concept of abstract task classes
  90. has also been introduced, this is like django models, where only the
  91. subclasses of an abstract task is registered.</p>
  92. </blockquote>
  93. </li>
  94. <li><p class="first">Events</p>
  95. <blockquote>
  96. <p>If enabled, the worker will send events, telling you what tasks it
  97. executes, their results, and how long it took to execute them. It also
  98. sends out heartbeats, so listeners are able to detect nonfunctional
  99. workers. This is the basis for the new real-time web monitor we&#8217;re working on
  100. (<a class="reference external" href="http://github.com/ask/celerymon/">celerymon</a>)</p>
  101. </blockquote>
  102. </li>
  103. </ul>
  104. <ul>
  105. <li><p class="first">Rate limiting</p>
  106. <blockquote>
  107. <p>Global and per task rate limits. 10 tasks a second? or one an hour? You
  108. decide. It&#8217;s using the awesome <a class="reference external" href="http://en.wikipedia.org/wiki/Token_bucket">token bucket algorithm</a>, which is
  109. commonly used for network traffic shaping. It accounts for bursts of
  110. activity, so your workers won&#8217;t be bored by having nothing to do.</p>
  111. </blockquote>
  112. </li>
  113. </ul>
  114. <ul>
  115. <li><p class="first">New periodic task service.</p>
  116. <blockquote>
  117. <p>Periodic tasks are no longer dispatched by <tt class="docutils literal"><span class="pre">celeryd</span></tt>, but instead by a
  118. separate service called <tt class="docutils literal"><span class="pre">celerybeat</span></tt>. This is an optimized, centralized
  119. service dedicated to your periodic tasks, which means you don&#8217;t have to
  120. worry about deadlocks or race conditions any more. But that does mean you
  121. have to make sure only one instance of this service is running at any one
  122. time.</p>
  123. </blockquote>
  124. <p><strong>TIP:</strong> If you&#8217;re only running a single <tt class="docutils literal"><span class="pre">celeryd</span></tt> server, you can embed
  125. <tt class="docutils literal"><span class="pre">celerybeat</span></tt> inside it. Just add the <tt class="docutils literal"><span class="pre">--beat</span></tt> argument.</p>
  126. </li>
  127. <li><p class="first">Broadcast commands</p>
  128. <blockquote>
  129. <p>If you change your mind and don&#8217;t want to run a task after all, you
  130. now have the option to revoke it.</p>
  131. <p>Also, you can rate limit tasks or even shut down the worker remotely.</p>
  132. <p>It doesn&#8217;t have many commands yet, but we&#8217;re waiting for broadcast
  133. commands to reach its full potential, so please share your ideas
  134. if you have any.</p>
  135. </blockquote>
  136. </li>
  137. <li><p class="first">Multiple queues</p>
  138. <blockquote>
  139. <p>The worker is able to receive tasks on multiple queues at once.
  140. This opens up a lot of new possibilities when combined with the impressive
  141. routing support in AMQP.</p>
  142. </blockquote>
  143. </li>
  144. <li><p class="first">Platform agnostic message format.</p>
  145. <p>The message format has been standardized and is now using the ISO-8601 format
  146. for dates instead of Python <tt class="docutils literal"><span class="pre">datetime</span></tt> objects. This means you can write task
  147. consumers in other languages than Python (<tt class="docutils literal"><span class="pre">eceleryd</span></tt> anyone?)</p>
  148. </li>
  149. <li><p class="first">Timely</p>
  150. <p>Periodic tasks are now scheduled on the clock, i.e. <tt class="docutils literal"><span class="pre">timedelta(hours=1)</span></tt>
  151. means every hour at :00 minutes, not every hour from the server starts.
  152. To revert to the previous behavior you have the option to enable
  153. <tt class="xref docutils literal"><span class="pre">PeriodicTask.relative</span></tt>.</p>
  154. </li>
  155. <li><p class="first">... and a lot more!</p>
  156. </li>
  157. </ul>
  158. <p>To read about these and other changes in detail, please refer to
  159. the <a class="reference external" href="http://ask.github.com/celery/changelog.html">changelog</a>. This document contains crucial information for those
  160. upgrading from a previous version of Celery, so be sure to read the entire
  161. change set before you continue.</p>
  162. <p><strong>TIP:</strong> If you install the <tt class="xref docutils literal"><span class="pre">setproctitle</span></tt> module you can see which
  163. task each worker process is currently executing in <tt class="docutils literal"><span class="pre">ps</span></tt> listings.
  164. Just install it using pip: <tt class="docutils literal"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">setproctitle</span></tt>.</p>
  165. </div>
  166. <div class="section" id="resources">
  167. <h2>Resources</h2>
  168. <ul class="simple">
  169. <li>Homepage: <a class="reference external" href="http://celeryproject.org">http://celeryproject.org</a></li>
  170. <li>Download: <a class="reference external" href="http://pypi.python.org/pypi/celery">http://pypi.python.org/pypi/celery</a></li>
  171. <li>Documentation: <a class="reference external" href="http://celeryproject.org/docs/">http://celeryproject.org/docs/</a></li>
  172. <li>Changelog: <a class="reference external" href="http://celeryproject.org/docs/changelog.html">http://celeryproject.org/docs/changelog.html</a></li>
  173. <li>Code: <a class="reference external" href="http://github.com/ask/celery/">http://github.com/ask/celery/</a></li>
  174. <li>FAQ: <a class="reference external" href="http://ask.github.com/celery/faq.html">http://ask.github.com/celery/faq.html</a></li>
  175. <li>Mailing-list: <a class="reference external" href="http://groups.google.com/group/celery-users">http://groups.google.com/group/celery-users</a></li>
  176. <li>IRC: #celery on irc.freenode.net.</li>
  177. </ul>
  178. </div>
  179. <div class="hidden">
  180. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  181. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  182. </p>
  183. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  184. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  185. </p>
  186. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  187. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  188. </p>
  189. </div>
  190. </div>
  191. <div class="column">
  192. <span class="newsitem">
  193. <h2>1.0 is in beta.</h2>
  194. <h4>By Ask on 08.02.2010</h4>
  195. <p>1.0 is scheduled to be released this week! Please help us test the latest
  196. <a href="http://github.com/ask/celery/tarball/v1.0.0-pre4">release
  197. candiate</a> to make this happen. To upgrade from an earlier
  198. version, please read the <a href="http://ask.github.com/celery/changelog.html">changelog</a>.
  199. <hr>
  200. </span>
  201. <span class="newsitem">
  202. <h2>New website.</h2>
  203. <h4>By Ask on 08.02.2010</h4>
  204. <p>We finally got a home page. Big thanks to <a href="http://helmersworks.com">Jan Henrik Helmers</a>
  205. <hr>
  206. </span>
  207. </div>
  208. </div>
  209. <div id="credits">
  210. <div class="iStretch">Copyright (c) 2009-2010, <a href="http://twitter.com/asksol">Ask Solem</a> and
  211. <a href="http://github.com/ask/celery/blob/master/AUTHORS">contributors</a>.<br>
  212. Page design by <a href="http://www.helmersworks.com/">Jan Henrik Helmers</a>
  213. </div>
  214. </div>
  215. </div>
  216. </body>
  217. </html>