celery_1.0_released.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. <p>Write tasks as regular functions and decorate them.
  81. 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>
  82. </li>
  83. <li><p class="first">Tasks are automatically registered</p>
  84. <p>Registering the tasks manually was getting tedious, so now you don&#8217;t have
  85. to anymore. You can still do it manually if you need to, just
  86. disable <tt class="xref docutils literal"><span class="pre">Task.autoregister</span></tt>. The concept of abstract task classes
  87. has also been introduced, this is like django models, where only the
  88. subclasses of an abstract task is registered.</p>
  89. </li>
  90. <li><p class="first">Events</p>
  91. <p>If enabled, the worker will send events, telling you what tasks it
  92. executes, their results, and how long it took to execute them. It also
  93. sends out heartbeats, so listeners are able to detect nonfunctional
  94. workers. This is the basis for the new real-time web monitor we&#8217;re working on
  95. (<a class="reference external" href="http://github.com/ask/celerymon/">celerymon</a>)</p>
  96. </li>
  97. </ul>
  98. <ul>
  99. <li><p class="first">Rate limiting</p>
  100. <p>Global and per task rate limits. 10 tasks a second? or one an hour? You
  101. 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
  102. commonly used for network traffic shaping. It accounts for bursts of
  103. activity, so your workers won&#8217;t be bored by having nothing to do.</p>
  104. </li>
  105. </ul>
  106. <ul>
  107. <li><p class="first">New periodic task service.</p>
  108. <p>Periodic tasks are no longer dispatched by <tt class="docutils literal"><span class="pre">celeryd</span></tt>, but instead by a
  109. separate service called <tt class="docutils literal"><span class="pre">celerybeat</span></tt>. This is an optimized, centralized
  110. service dedicated to your periodic tasks, which means you don&#8217;t have to
  111. worry about deadlocks or race conditions any more. But that does mean you
  112. have to make sure only one instance of this service is running at any one
  113. time.</p>
  114. <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
  115. <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>
  116. </li>
  117. <li><p class="first">Broadcast commands</p>
  118. <p>If you change your mind and don&#8217;t want to run a task after all, you
  119. now have the option to revoke it.</p>
  120. <p>Also, you can rate limit tasks or even shut down the worker remotely.</p>
  121. <p>It doesn&#8217;t have many commands yet, but we&#8217;re waiting for broadcast
  122. commands to reach its full potential, so please share your ideas
  123. if you have any.</p>
  124. </li>
  125. <li><p class="first">Multiple queues</p>
  126. <p>The worker is able to receive tasks on multiple queues at once.
  127. This opens up a lot of new possibilities when combined with the impressive
  128. routing support in AMQP.</p>
  129. </li>
  130. <li><p class="first">Platform agnostic message format.</p>
  131. <p>The message format has been standardized and is now using the ISO-8601 format
  132. for dates instead of Python <tt class="docutils literal"><span class="pre">datetime</span></tt> objects. This means you can write task
  133. consumers in other languages than Python (<tt class="docutils literal"><span class="pre">eceleryd</span></tt> anyone?)</p>
  134. </li>
  135. <li><p class="first">Timely</p>
  136. <p>Periodic tasks are now scheduled on the clock, i.e. <tt class="docutils literal"><span class="pre">timedelta(hours=1)</span></tt>
  137. means every hour at :00 minutes, not every hour from the server starts.
  138. To revert to the previous behavior you have the option to enable
  139. <tt class="xref docutils literal"><span class="pre">PeriodicTask.relative</span></tt>.</p>
  140. </li>
  141. <li><p class="first">... and a lot more!</p>
  142. </li>
  143. </ul>
  144. <p>To read about these and other changes in detail, please refer to
  145. the <a class="reference external" href="http://ask.github.com/celery/changelog.html">changelog</a>. This document contains crucial information for those
  146. upgrading from a previous version of Celery, so be sure to read the entire
  147. change set before you continue.</p>
  148. <p><strong>TIP:</strong> If you install the <tt class="xref docutils literal"><span class="pre">setproctitle</span></tt> module you can see which
  149. task each worker process is currently executing in <tt class="docutils literal"><span class="pre">ps</span></tt> listings.
  150. 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>
  151. </div>
  152. <div class="section" id="resources">
  153. <h2>Resources</h2>
  154. <ul class="simple">
  155. <li><a class="reference external" href="http://celeryproject.org/docs/">Documentation</a></li>
  156. <li><a class="reference external" href="http://celeryproject.org/docs/changelog.html">Changelog</a></li>
  157. <li><a class="reference external" href="http://ask.github.com/celery/faq.html">FAQ</a></li>
  158. <li><a class="reference external" href="http://groups.google.com/group/celery-users">Mailing-list</a></li>
  159. <li><a class="reference external" href="http://twitter.com/asksol">Twitter</a></li>
  160. <li>IRC: #celery on irc.freenode.net.</li>
  161. </ul>
  162. </div>
  163. <div class="hidden">
  164. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  165. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  166. </p>
  167. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  168. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  169. </p>
  170. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  171. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  172. </p>
  173. </div>
  174. </div>
  175. <div class="column">
  176. <span class="newsitem">
  177. <h2>Celery 1.0 released!</h2>
  178. <h4>By <a href="http://twitter.com/asksol">@asksol</a> on 10.02.2010</h4>
  179. <p>Celery 1.0 has finally been released! It is available on <a
  180. href="http://pypi.python.org/pypi/celery/1.0.0">PyPI</a> for
  181. downloading. You can also install it via <code>pip install
  182. celery</code>. You can read the announcement <a href="celery_1.0_released.html">here</a>.
  183. <hr>
  184. </span>
  185. <span class="newsitem">
  186. <h2>1.0 is in beta.</h2>
  187. <h4>By <a href="http://twitter.com/asksol">@asksol</a> on 08.02.2010</h4>
  188. <p>1.0 is scheduled to be released this week! Please help us test the latest
  189. <a href="http://github.com/ask/celery/tarball/v1.0.0-pre4">release
  190. candiate</a> to make this happen. To upgrade from an earlier
  191. version, please read the <a href="http://ask.github.com/celery/changelog.html">changelog</a>.
  192. <hr>
  193. </span>
  194. <span class="newsitem">
  195. <h2>New website.</h2>
  196. <h4>By <a href="http://twitter.com/asksol">@asksol</a> on 08.02.2010</h4>
  197. <p>We finally got a home page. Big thanks to <a href="http://helmersworks.com">Jan Henrik Helmers</a>
  198. <hr>
  199. </span>
  200. </div>
  201. </div>
  202. <div id="credits">
  203. <div class="iStretch">Copyright (c) 2009-2010, <a href="http://twitter.com/asksol">Ask Solem</a> and
  204. <a href="http://github.com/ask/celery/blob/master/AUTHORS">contributors</a>.<br>
  205. Page design by <a href="http://www.helmersworks.com/">Jan Henrik Helmers</a>
  206. </div>
  207. </div>
  208. </div>
  209. </body>
  210. </html>