changelog.html 28 KB

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