changelog.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  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>Change history &mdash; Celery v0.3.2 (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.2 (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.2 (unstable) documentation" href="index.html" />
  21. <link rel="prev" title="Celery Worker Daemon - celery.bin.celeryd" href="reference/celery.bin.celeryd.html" />
  22. </head>
  23. <body>
  24. <div class="header-wrapper">
  25. <div class="header">
  26. <h1><a href="index.html">Celery v0.3.2 (unstable) documentation</a></h1>
  27. <div class="rel">
  28. <a href="genindex.html" title="General Index"
  29. accesskey="I">index</a> |
  30. <a href="modindex.html" title="Global Module Index"
  31. accesskey="M">modules</a> |
  32. <a href="reference/celery.bin.celeryd.html" title="Celery Worker Daemon - celery.bin.celeryd"
  33. accesskey="P">previous</a>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="content-wrapper">
  38. <div class="content">
  39. <div class="document">
  40. <div class="documentwrapper">
  41. <div class="bodywrapper">
  42. <div class="body">
  43. <div class="section" id="change-history">
  44. <h1>Change history<a class="headerlink" href="#change-history" title="Permalink to this headline">¶</a></h1>
  45. <div class="section" id="p-m-cet-askh-opera-com">
  46. <h2>0.3.2 [2009-06-08 01:07 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#p-m-cet-askh-opera-com" title="Permalink to this headline">¶</a></h2>
  47. <ul>
  48. <li><dl class="first docutils">
  49. <dt>celeryd: Added option <tt class="docutils literal"><span class="pre">--discard</span></tt>: Discard (delete!) all waiting</dt>
  50. <dd><p class="first last">messages in the queue.</p>
  51. </dd>
  52. </dl>
  53. </li>
  54. <li><p class="first">celeryd: The <tt class="docutils literal"><span class="pre">--wakeup-after</span></tt> option was not handled as a float.</p>
  55. </li>
  56. </ul>
  57. </div>
  58. <div class="section" id="id1">
  59. <h2>0.3.1 [2009-06-08 01:07 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
  60. <ul>
  61. <li><dl class="first docutils">
  62. <dt>The <cite>PeriodicTask`</cite> worker is now running in its own thread instead</dt>
  63. <dd><p class="first last">of blocking the <tt class="docutils literal"><span class="pre">TaskController</span></tt> loop.</p>
  64. </dd>
  65. </dl>
  66. </li>
  67. <li><p class="first">Default <tt class="docutils literal"><span class="pre">QUEUE_WAKEUP_AFTER</span></tt> has been lowered to <tt class="docutils literal"><span class="pre">0.1</span></tt> (was <tt class="docutils literal"><span class="pre">0.3</span></tt>)</p>
  68. </li>
  69. </ul>
  70. </div>
  71. <div class="section" id="id2">
  72. <h2>0.3.0 [2009-06-08 12:41 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
  73. <p><strong>NOTE</strong> This is a development version, for the stable release, please
  74. see versions 0.2.x.</p>
  75. <p><strong>VERY IMPORTANT:</strong> Pickle is now the encoder used for serializing task
  76. arguments, so be sure to flush your task queue before you upgrade.</p>
  77. <ul>
  78. <li><dl class="first docutils">
  79. <dt><strong>IMPORTANT</strong> TaskSet.run() now returns a celery.result.TaskSetResult</dt>
  80. <dd><p class="first last">instance, which lets you inspect the status and return values of a
  81. taskset as it was a single entity.</p>
  82. </dd>
  83. </dl>
  84. </li>
  85. <li><p class="first"><strong>IMPORTANT</strong> Celery now depends on carrot &gt;= 0.4.1.</p>
  86. </li>
  87. <li><dl class="first docutils">
  88. <dt>The celery daemon now sends task errors to the registered admin e-mails.</dt>
  89. <dd><p class="first last">To turn off this feature, set <tt class="docutils literal"><span class="pre">SEND_CELERY_TASK_ERROR_EMAILS</span></tt> to
  90. <tt class="xref docutils literal"><span class="pre">False</span></tt> in your <tt class="docutils literal"><span class="pre">settings.py</span></tt>. Thanks to Grégoire Cachet.</p>
  91. </dd>
  92. </dl>
  93. </li>
  94. <li><p class="first">You can now run the celery daemon by using <tt class="docutils literal"><span class="pre">manage.py</span></tt>:</p>
  95. <div class="highlight-python"><pre> $ python manage.py celeryd
  96. Thanks to Grégoire Cachet.</pre>
  97. </div>
  98. </li>
  99. <li><dl class="first docutils">
  100. <dt>Added support for message priorities, topic exchanges, custom routing</dt>
  101. <dd><p class="first">keys for tasks. This means we have introduced
  102. <tt class="docutils literal"><span class="pre">celery.task.apply_async</span></tt>, a new way of executing tasks.</p>
  103. <p>You can use <tt class="docutils literal"><span class="pre">celery.task.delay</span></tt> and <tt class="docutils literal"><span class="pre">celery.Task.delay</span></tt> like usual, but
  104. if you want greater control over the message sent, you want
  105. <tt class="docutils literal"><span class="pre">celery.task.apply_async</span></tt> and <tt class="docutils literal"><span class="pre">celery.Task.apply_async</span></tt>.</p>
  106. <p>This also means the AMQP configuration has changed. Some settings has
  107. been renamed, while others are new:</p>
  108. <div class="highlight-python"><div class="highlight"><pre><span class="n">CELERY_AMQP_EXCHANGE</span>
  109. <span class="n">CELERY_AMQP_PUBLISHER_ROUTING_KEY</span>
  110. <span class="n">CELERY_AMQP_CONSUMER_ROUTING_KEY</span>
  111. <span class="n">CELERY_AMQP_CONSUMER_QUEUE</span>
  112. <span class="n">CELERY_AMQP_EXCHANGE_TYPE</span>
  113. </pre></div>
  114. </div>
  115. <p class="last">See the entry <a class="reference external" href="http://bit.ly/celery_AMQP_routing">Can I send some tasks to only some servers?</a> in the
  116. <a class="reference external" href="http://ask.github.com/celery/faq.html">FAQ</a> for more information.</p>
  117. </dd>
  118. </dl>
  119. </li>
  120. </ul>
  121. <ul>
  122. <li><dl class="first docutils">
  123. <dt>Task errors are now logged using loglevel <tt class="docutils literal"><span class="pre">ERROR</span></tt> instead of <tt class="docutils literal"><span class="pre">INFO</span></tt>,</dt>
  124. <dd><p class="first last">and backtraces are dumped. Thanks to Grégoire Cachet.</p>
  125. </dd>
  126. </dl>
  127. </li>
  128. <li><dl class="first docutils">
  129. <dt>Make every new worker process re-establish it&#8217;s Django DB connection,</dt>
  130. <dd><p class="first last">this solving the &#8220;MySQL connection died?&#8221; exceptions.
  131. Thanks to Vitaly Babiy and Jirka Vejrazka.</p>
  132. </dd>
  133. </dl>
  134. </li>
  135. <li><dl class="first docutils">
  136. <dt><strong>IMOPORTANT</strong> Now using pickle to encode task arguments. This means you</dt>
  137. <dd><p class="first last">now can pass complex python objects to tasks as arguments.</p>
  138. </dd>
  139. </dl>
  140. </li>
  141. <li><p class="first">Removed dependency on <tt class="docutils literal"><span class="pre">yadayada</span></tt>.</p>
  142. </li>
  143. <li><p class="first">Added a FAQ, see <tt class="docutils literal"><span class="pre">docs/faq.rst</span></tt>.</p>
  144. </li>
  145. <li><dl class="first docutils">
  146. <dt>Now converts any unicode keys in task <tt class="docutils literal"><span class="pre">kwargs</span></tt> to regular strings.</dt>
  147. <dd><p class="first last">Thanks Vitaly Babiy.</p>
  148. </dd>
  149. </dl>
  150. </li>
  151. <li><p class="first">Renamed the <tt class="docutils literal"><span class="pre">TaskDaemon</span></tt> to <tt class="docutils literal"><span class="pre">WorkController</span></tt>.</p>
  152. </li>
  153. <li><dl class="first docutils">
  154. <dt><tt class="docutils literal"><span class="pre">celery.datastructures.TaskProcessQueue</span></tt> is now renamed to</dt>
  155. <dd><p class="first last"><tt class="docutils literal"><span class="pre">celery.pool.TaskPool</span></tt>.</p>
  156. </dd>
  157. </dl>
  158. </li>
  159. <li><dl class="first docutils">
  160. <dt>The pool algorithm has been refactored for greater performance and</dt>
  161. <dd><p class="first last">stability.</p>
  162. </dd>
  163. </dl>
  164. </li>
  165. </ul>
  166. </div>
  167. <div class="section" id="id3">
  168. <h2>0.2.0 [2009-05-20 05:14 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
  169. <ul class="simple">
  170. <li>Final release of 0.2.0</li>
  171. <li>Compatible with carrot version 0.4.0.</li>
  172. <li>Fixes some syntax errors related to fetching results
  173. from the database backend.</li>
  174. </ul>
  175. </div>
  176. <div class="section" id="pre3-2009-05-20-05-14-p-m-cet-askh-opera-com">
  177. <h2>0.2.0-pre3 [2009-05-20 05:14 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#pre3-2009-05-20-05-14-p-m-cet-askh-opera-com" title="Permalink to this headline">¶</a></h2>
  178. <ul>
  179. <li><dl class="first docutils">
  180. <dt><em>Internal release</em>. Improved handling of unpickled exceptions,</dt>
  181. <dd><p class="first last">get_result() now tries to recreate something looking like the
  182. original exception.</p>
  183. </dd>
  184. </dl>
  185. </li>
  186. </ul>
  187. </div>
  188. <div class="section" id="pre2-2009-05-20-01-56-p-m-cet-askh-opera-com">
  189. <h2>0.2.0-pre2 [2009-05-20 01:56 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#pre2-2009-05-20-01-56-p-m-cet-askh-opera-com" title="Permalink to this headline">¶</a></h2>
  190. <ul class="simple">
  191. <li>Now handles unpickleable exceptions (like the dynimically generated
  192. subclasses of <tt class="docutils literal"><span class="pre">django.core.exception.MultipleObjectsReturned</span></tt>).</li>
  193. </ul>
  194. </div>
  195. <div class="section" id="pre1-2009-05-20-12-33-p-m-cet-askh-opera-com">
  196. <h2>0.2.0-pre1 [2009-05-20 12:33 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#pre1-2009-05-20-12-33-p-m-cet-askh-opera-com" title="Permalink to this headline">¶</a></h2>
  197. <ul class="simple">
  198. <li>It&#8217;s getting quite stable, with a lot of new features, so bump
  199. version to 0.2. This is a pre-release.</li>
  200. <li><tt class="docutils literal"><span class="pre">celery.task.mark_as_read()</span></tt> and <tt class="docutils literal"><span class="pre">celery.task.mark_as_failure()</span></tt> has
  201. been removed. Use <tt class="docutils literal"><span class="pre">celery.backends.default_backend.mark_as_read()</span></tt>,
  202. and <tt class="docutils literal"><span class="pre">celery.backends.default_backend.mark_as_failure()</span></tt> instead.</li>
  203. </ul>
  204. </div>
  205. <div class="section" id="id4">
  206. <h2>0.1.15 [2009-05-19 04:13 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
  207. <ul class="simple">
  208. <li>The celery daemon was leaking AMQP connections, this should be fixed,
  209. if you have any problems with too many files open (like <tt class="docutils literal"><span class="pre">emfile</span></tt>
  210. errors in <tt class="docutils literal"><span class="pre">rabbit.log</span></tt>, please contact us!</li>
  211. </ul>
  212. </div>
  213. <div class="section" id="id5">
  214. <h2>0.1.14 [2009-05-19 01:08 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
  215. <ul class="simple">
  216. <li>Fixed a syntax error in the <tt class="docutils literal"><span class="pre">TaskSet</span></tt> class. (No such variable
  217. <tt class="docutils literal"><span class="pre">TimeOutError</span></tt>).</li>
  218. </ul>
  219. </div>
  220. <div class="section" id="id6">
  221. <h2>0.1.13 [2009-05-19 12:36 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
  222. <ul>
  223. <li><p class="first">Forgot to add <tt class="docutils literal"><span class="pre">yadayada</span></tt> to install requirements.</p>
  224. </li>
  225. <li><p class="first">Now deletes all expired task results, not just those marked as done.</p>
  226. </li>
  227. <li><p class="first">Able to load the Tokyo Tyrant backend class without django
  228. configuration, can specify tyrant settings directly in the class
  229. constructor.</p>
  230. </li>
  231. <li><p class="first">Improved API documentation</p>
  232. </li>
  233. <li><p class="first">Now using the Sphinx documentation system, you can build
  234. the html documentation by doing</p>
  235. <div class="highlight-python"><pre>$ cd docs
  236. $ make html</pre>
  237. </div>
  238. <p>and the result will be in <tt class="docutils literal"><span class="pre">docs/.build/html</span></tt>.</p>
  239. </li>
  240. </ul>
  241. </div>
  242. <div class="section" id="id7">
  243. <h2>0.1.12 [2009-05-18 04:38 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h2>
  244. <ul>
  245. <li><p class="first"><tt class="docutils literal"><span class="pre">delay_task()</span></tt> etc. now returns <tt class="docutils literal"><span class="pre">celery.task.AsyncResult</span></tt> object,
  246. which lets you check the result and any failure that might have
  247. happened. It kind of works like the <tt class="docutils literal"><span class="pre">multiprocessing.AsyncResult</span></tt>
  248. class returned by <tt class="docutils literal"><span class="pre">multiprocessing.Pool.map_async</span></tt>.</p>
  249. </li>
  250. <li><p class="first">Added dmap() and dmap_async(). This works like the
  251. <tt class="docutils literal"><span class="pre">multiprocessing.Pool</span></tt> versions except they are tasks
  252. distributed to the celery server. Example:</p>
  253. <blockquote>
  254. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">celery.task</span> <span class="kn">import</span> <span class="n">dmap</span>
  255. <span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">operator</span>
  256. <span class="gp">&gt;&gt;&gt; </span><span class="n">dmap</span><span class="p">(</span><span class="n">operator</span><span class="o">.</span><span class="n">add</span><span class="p">,</span> <span class="p">[[</span><span class="mf">2</span><span class="p">,</span> <span class="mf">2</span><span class="p">],</span> <span class="p">[</span><span class="mf">4</span><span class="p">,</span> <span class="mf">4</span><span class="p">],</span> <span class="p">[</span><span class="mf">8</span><span class="p">,</span> <span class="mf">8</span><span class="p">]])</span>
  257. <span class="gp">&gt;&gt;&gt; </span><span class="p">[</span><span class="mf">4</span><span class="p">,</span> <span class="mf">8</span><span class="p">,</span> <span class="mf">16</span><span class="p">]</span>
  258. </pre></div>
  259. </div>
  260. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">celery.task</span> <span class="kn">import</span> <span class="n">dmap_async</span>
  261. <span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">operator</span>
  262. <span class="gp">&gt;&gt;&gt; </span><span class="n">result</span> <span class="o">=</span> <span class="n">dmap_async</span><span class="p">(</span><span class="n">operator</span><span class="o">.</span><span class="n">add</span><span class="p">,</span> <span class="p">[[</span><span class="mf">2</span><span class="p">,</span> <span class="mf">2</span><span class="p">],</span> <span class="p">[</span><span class="mf">4</span><span class="p">,</span> <span class="mf">4</span><span class="p">],</span> <span class="p">[</span><span class="mf">8</span><span class="p">,</span> <span class="mf">8</span><span class="p">]])</span>
  263. <span class="gp">&gt;&gt;&gt; </span><span class="n">result</span><span class="o">.</span><span class="n">ready</span><span class="p">()</span>
  264. <span class="go">False</span>
  265. <span class="gp">&gt;&gt;&gt; </span><span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mf">1</span><span class="p">)</span>
  266. <span class="gp">&gt;&gt;&gt; </span><span class="n">result</span><span class="o">.</span><span class="n">ready</span><span class="p">()</span>
  267. <span class="go">True</span>
  268. <span class="gp">&gt;&gt;&gt; </span><span class="n">result</span><span class="o">.</span><span class="n">result</span>
  269. <span class="go">[4, 8, 16]</span>
  270. </pre></div>
  271. </div>
  272. </blockquote>
  273. </li>
  274. <li><p class="first">Refactored the task metadata cache and database backends, and added a new backend for Tokyo Tyrant. You can set the backend in your django settings file. e.g</p>
  275. <blockquote>
  276. <p>CELERY_BACKEND = &#8220;database&#8221;; # Uses the database</p>
  277. <p>CELERY_BACKEND = &#8220;cache&#8221;; # Uses the django cache framework</p>
  278. <p>CELERY_BACKEND = &#8220;tyrant&#8221;; # Uses Tokyo Tyrant
  279. TT_HOST = &#8220;localhost&#8221;; # Hostname for the Tokyo Tyrant server.
  280. TT_PORT = 6657; # Port of the Tokyo Tyrant server.</p>
  281. </blockquote>
  282. </li>
  283. </ul>
  284. </div>
  285. <div class="section" id="id8">
  286. <h2>0.1.11 [2009-05-12 02:08 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h2>
  287. <ul class="simple">
  288. <li>The logging system was leaking file descriptors, resulting in
  289. servers stopping with the EMFILES (too many open files) error. (fixed)</li>
  290. </ul>
  291. </div>
  292. <div class="section" id="id9">
  293. <h2>0.1.10 [2009-05-11 12:46 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h2>
  294. <ul class="simple">
  295. <li>Tasks now supports both positional arguments and keyword arguments.</li>
  296. <li>Requires carrot 0.3.8.</li>
  297. <li>The daemon now tries to reconnect if the connection is lost.</li>
  298. </ul>
  299. </div>
  300. <div class="section" id="id10">
  301. <h2>0.1.8 [2009-05-07 12:27 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h2>
  302. <ul class="simple">
  303. <li>Better test coverage</li>
  304. <li>More documentation</li>
  305. <li>celeryd doesn&#8217;t emit <tt class="docutils literal"><span class="pre">Queue</span> <span class="pre">is</span> <span class="pre">empty</span></tt> message if
  306. <tt class="docutils literal"><span class="pre">settings.CELERYD_EMPTY_MSG_EMIT_EVERY</span></tt> is 0.</li>
  307. </ul>
  308. </div>
  309. <div class="section" id="id11">
  310. <h2>0.1.7 [2009-04-30 1:50 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h2>
  311. <ul class="simple">
  312. <li>Added some unittests</li>
  313. <li>Can now use the database for task metadata (like if the task has
  314. been executed or not). Set <tt class="docutils literal"><span class="pre">settings.CELERY_TASK_META</span></tt></li>
  315. <li>Can now run <tt class="docutils literal"><span class="pre">python</span> <span class="pre">setup.py</span> <span class="pre">test</span></tt> to run the unittests from
  316. within the <tt class="docutils literal"><span class="pre">testproj</span></tt> project.</li>
  317. <li>Can set the AMQP exchange/routing key/queue using
  318. <tt class="docutils literal"><span class="pre">settings.CELERY_AMQP_EXCHANGE</span></tt>, <tt class="docutils literal"><span class="pre">settings.CELERY_AMQP_ROUTING_KEY</span></tt>,
  319. and <tt class="docutils literal"><span class="pre">settings.CELERY_AMQP_CONSUMER_QUEUE</span></tt>.</li>
  320. </ul>
  321. </div>
  322. <div class="section" id="id12">
  323. <h2>0.1.6 [2009-04-28 2:13 P.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h2>
  324. <blockquote>
  325. <ul class="simple">
  326. <li>Introducing <tt class="docutils literal"><span class="pre">TaskSet</span></tt>. A set of subtasks is executed and you can
  327. find out how many, or if all them, are done (excellent for progress bars and such)</li>
  328. <li>Now catches all exceptions when running <tt class="docutils literal"><span class="pre">Task.__call__</span></tt>, so the
  329. daemon doesn&#8217;t die. This does&#8217;t happen for pure functions yet, only
  330. <tt class="docutils literal"><span class="pre">Task</span></tt> classes.</li>
  331. <li><tt class="docutils literal"><span class="pre">autodiscover()</span></tt> now works with zipped eggs.</li>
  332. <li>celeryd: Now adds curernt working directory to <tt class="docutils literal"><span class="pre">sys.path</span></tt> for
  333. convenience.</li>
  334. <li>The <tt class="docutils literal"><span class="pre">run_every</span></tt> attribute of <tt class="docutils literal"><span class="pre">PeriodicTask</span></tt> classes can now be a
  335. <tt class="docutils literal"><span class="pre">datetime.timedelta()</span></tt> object.</li>
  336. <li>celeryd: You can now set the <tt class="docutils literal"><span class="pre">DJANGO_PROJECT_DIR</span></tt> variable
  337. for <tt class="docutils literal"><span class="pre">celeryd</span></tt> and it will add that to <tt class="docutils literal"><span class="pre">sys.path</span></tt> for easy launching.</li>
  338. <li>Can now check if a task has been executed or not via HTTP.</li>
  339. </ul>
  340. <p>You can do this by including the celery <tt class="docutils literal"><span class="pre">urls.py</span></tt> into your project,</p>
  341. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">url</span><span class="p">(</span><span class="s">r&#39;^celery/$&#39;</span><span class="p">,</span> <span class="n">include</span><span class="p">(</span><span class="s">&quot;celery.urls&quot;</span><span class="p">))</span>
  342. </pre></div>
  343. </div>
  344. <p>then visiting the following url,:</p>
  345. <div class="highlight-python"><pre>http://mysite/celery/$task_id/done/</pre>
  346. </div>
  347. <p>this will return a JSON dictionary like e.g:</p>
  348. <div class="highlight-python"><pre>&gt;&gt;&gt; {"task": {"id": $task_id, "executed": true}}</pre>
  349. </div>
  350. <ul class="simple">
  351. <li><tt class="docutils literal"><span class="pre">delay_task</span></tt> now returns string id, not <tt class="docutils literal"><span class="pre">uuid.UUID</span></tt> instance.</li>
  352. <li>Now has <tt class="docutils literal"><span class="pre">PeriodicTasks</span></tt>, to have <tt class="docutils literal"><span class="pre">cron</span></tt> like functionality.</li>
  353. <li>Project changed name from <tt class="docutils literal"><span class="pre">crunchy</span></tt> to <tt class="docutils literal"><span class="pre">celery</span></tt>. The details of
  354. the name change request is in <tt class="docutils literal"><span class="pre">docs/name_change_request.txt</span></tt>.</li>
  355. </ul>
  356. </blockquote>
  357. </div>
  358. <div class="section" id="a-m-cet-askh-opera-com">
  359. <h2>0.1.0 [2009-04-24 11:28 A.M CET] <a class="reference external" href="mailto:askh&#37;&#52;&#48;opera&#46;com">askh<span>&#64;</span>opera<span>&#46;</span>com</a><a class="headerlink" href="#a-m-cet-askh-opera-com" title="Permalink to this headline">¶</a></h2>
  360. <ul class="simple">
  361. <li>Initial release</li>
  362. </ul>
  363. </div>
  364. </div>
  365. </div>
  366. </div>
  367. </div>
  368. </div>
  369. <div class="sidebar">
  370. <h3>Contents</h3>
  371. <ul class="current">
  372. <li class="toctree-l1"><a class="reference external" href="introduction.html">celery - Distributed Task Queue for Django.</a></li>
  373. <li class="toctree-l1"><a class="reference external" href="faq.html">Frequently Asked Questions</a></li>
  374. <li class="toctree-l1"><a class="reference external" href="reference/index.html">Module API Reference</a></li>
  375. <li class="toctree-l1 current"><a class="current reference external" href="">Change history</a><ul>
  376. <li class="toctree-l2"><a class="reference external" href="#p-m-cet-askh-opera-com">0.3.2 [2009-06-08 01:07 P.M CET] askh&#64;opera.com</a></li>
  377. <li class="toctree-l2"><a class="reference external" href="#id1">0.3.1 [2009-06-08 01:07 P.M CET] askh&#64;opera.com</a></li>
  378. <li class="toctree-l2"><a class="reference external" href="#id2">0.3.0 [2009-06-08 12:41 P.M CET] askh&#64;opera.com</a></li>
  379. <li class="toctree-l2"><a class="reference external" href="#id3">0.2.0 [2009-05-20 05:14 P.M CET] askh&#64;opera.com</a></li>
  380. <li class="toctree-l2"><a class="reference external" href="#pre3-2009-05-20-05-14-p-m-cet-askh-opera-com">0.2.0-pre3 [2009-05-20 05:14 P.M CET] askh&#64;opera.com</a></li>
  381. <li class="toctree-l2"><a class="reference external" href="#pre2-2009-05-20-01-56-p-m-cet-askh-opera-com">0.2.0-pre2 [2009-05-20 01:56 P.M CET] askh&#64;opera.com</a></li>
  382. <li class="toctree-l2"><a class="reference external" href="#pre1-2009-05-20-12-33-p-m-cet-askh-opera-com">0.2.0-pre1 [2009-05-20 12:33 P.M CET] askh&#64;opera.com</a></li>
  383. <li class="toctree-l2"><a class="reference external" href="#id4">0.1.15 [2009-05-19 04:13 P.M CET] askh&#64;opera.com</a></li>
  384. <li class="toctree-l2"><a class="reference external" href="#id5">0.1.14 [2009-05-19 01:08 P.M CET] askh&#64;opera.com</a></li>
  385. <li class="toctree-l2"><a class="reference external" href="#id6">0.1.13 [2009-05-19 12:36 P.M CET] askh&#64;opera.com</a></li>
  386. <li class="toctree-l2"><a class="reference external" href="#id7">0.1.12 [2009-05-18 04:38 P.M CET] askh&#64;opera.com</a></li>
  387. <li class="toctree-l2"><a class="reference external" href="#id8">0.1.11 [2009-05-12 02:08 P.M CET] askh&#64;opera.com</a></li>
  388. <li class="toctree-l2"><a class="reference external" href="#id9">0.1.10 [2009-05-11 12:46 P.M CET] askh&#64;opera.com</a></li>
  389. <li class="toctree-l2"><a class="reference external" href="#id10">0.1.8 [2009-05-07 12:27 P.M CET] askh&#64;opera.com</a></li>
  390. <li class="toctree-l2"><a class="reference external" href="#id11">0.1.7 [2009-04-30 1:50 P.M CET] askh&#64;opera.com</a></li>
  391. <li class="toctree-l2"><a class="reference external" href="#id12">0.1.6 [2009-04-28 2:13 P.M CET] askh&#64;opera.com</a></li>
  392. <li class="toctree-l2"><a class="reference external" href="#a-m-cet-askh-opera-com">0.1.0 [2009-04-24 11:28 A.M CET] askh&#64;opera.com</a></li>
  393. </ul>
  394. </li>
  395. </ul>
  396. <h3 style="margin-top: 1.5em;">Search</h3>
  397. <form class="search" action="search.html" method="get">
  398. <input type="text" name="q" size="18" />
  399. <input type="submit" value="Go" />
  400. <input type="hidden" name="check_keywords" value="yes" />
  401. <input type="hidden" name="area" value="default" />
  402. </form>
  403. <p class="searchtip" style="font-size: 90%">
  404. Enter search terms or a module, class or function name.
  405. </p>
  406. </div>
  407. <div class="clearer"></div>
  408. </div>
  409. </div>
  410. <div class="footer-wrapper">
  411. <div class="footer">
  412. <div class="left">
  413. <a href="genindex.html" title="General Index"
  414. >index</a> |
  415. <a href="modindex.html" title="Global Module Index"
  416. >modules</a> |
  417. <a href="reference/celery.bin.celeryd.html" title="Celery Worker Daemon - celery.bin.celeryd"
  418. >previous</a>
  419. <br/>
  420. <a href="sources/changelog.txt"
  421. rel="nofollow">Show Source</a>
  422. </div>
  423. <div class="right">
  424. &copy; Copyright 2009, Ask Solem.<br/>
  425. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.1.
  426. </div>
  427. <div class="clearer"></div>
  428. </div>
  429. </div>
  430. </body>
  431. </html>