celery.task.html 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  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>Tasks - celery.task &mdash; Celery v0.1.15 documentation</title>
  7. <link rel="stylesheet" href="../static/default.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.1.15',
  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.1.15 documentation" href="../index.html" />
  21. <link rel="next" title="Task Result - celery.result" href="celery.result.html" />
  22. <link rel="prev" title="Welcome to Celery’s documentation!" href="../index.html" />
  23. </head>
  24. <body>
  25. <div class="related">
  26. <h3>Navigation</h3>
  27. <ul>
  28. <li class="right" style="margin-right: 10px">
  29. <a href="../genindex.html" title="General Index"
  30. accesskey="I">index</a></li>
  31. <li class="right" >
  32. <a href="../modindex.html" title="Global Module Index"
  33. accesskey="M">modules</a> |</li>
  34. <li class="right" >
  35. <a href="celery.result.html" title="Task Result - celery.result"
  36. accesskey="N">next</a> |</li>
  37. <li class="right" >
  38. <a href="../index.html" title="Welcome to Celery’s documentation!"
  39. accesskey="P">previous</a> |</li>
  40. <li><a href="../index.html">Celery v0.1.15 documentation</a> &raquo;</li>
  41. </ul>
  42. </div>
  43. <div class="document">
  44. <div class="documentwrapper">
  45. <div class="bodywrapper">
  46. <div class="body">
  47. <div class="section" id="module-celery.task">
  48. <h1>Tasks - celery.task<a class="headerlink" href="#module-celery.task" title="Permalink to this headline">¶</a></h1>
  49. <p>Working with tasks and task sets.</p>
  50. <dl class="class">
  51. <dt id="celery.task.AsynchronousMapTask">
  52. <em class="property">
  53. class </em><tt class="descclassname">celery.task.</tt><tt class="descname">AsynchronousMapTask</tt><a class="headerlink" href="#celery.task.AsynchronousMapTask" title="Permalink to this definition">¶</a></dt>
  54. <dd>Task used internally by <a title="celery.task.dmap_async" class="reference internal" href="#celery.task.dmap_async"><tt class="xref docutils literal"><span class="pre">dmap_async()</span></tt></a> and
  55. <a title="celery.task.TaskSet.map_async" class="reference internal" href="#celery.task.TaskSet.map_async"><tt class="xref docutils literal"><span class="pre">TaskSet.map_async()</span></tt></a>.</dd></dl>
  56. <dl class="class">
  57. <dt id="celery.task.DeleteExpiredTaskMetaTask">
  58. <em class="property">
  59. class </em><tt class="descclassname">celery.task.</tt><tt class="descname">DeleteExpiredTaskMetaTask</tt><a class="headerlink" href="#celery.task.DeleteExpiredTaskMetaTask" title="Permalink to this definition">¶</a></dt>
  60. <dd><p>A periodic task that deletes expired task metadata every day.</p>
  61. <p>This runs the current backend&#8217;s
  62. <a title="celery.backends.base.BaseBackend.cleanup" class="reference external" href="celery.backends.base.html#celery.backends.base.BaseBackend.cleanup"><tt class="xref docutils literal"><span class="pre">celery.backends.base.BaseBackend.cleanup()</span></tt></a> method.</p>
  63. </dd></dl>
  64. <dl class="class">
  65. <dt id="celery.task.ExecuteRemoteTask">
  66. <em class="property">
  67. class </em><tt class="descclassname">celery.task.</tt><tt class="descname">ExecuteRemoteTask</tt><a class="headerlink" href="#celery.task.ExecuteRemoteTask" title="Permalink to this definition">¶</a></dt>
  68. <dd><p>Execute an arbitrary function or object.</p>
  69. <p><em>Note</em> You probably want <a title="celery.task.execute_remote" class="reference internal" href="#celery.task.execute_remote"><tt class="xref docutils literal"><span class="pre">execute_remote()</span></tt></a> instead, which this
  70. is an internal component of.</p>
  71. <p>The object must be pickleable, so you can&#8217;t use lambdas or functions
  72. defined in the REPL (that is the python shell, or <tt class="docutils literal"><span class="pre">ipython</span></tt>).</p>
  73. <dl class="method">
  74. <dt id="celery.task.ExecuteRemoteTask.run">
  75. <tt class="descname">run</tt><big>(</big><em>ser_callable</em>, <em>fargs</em>, <em>fkwargs</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.task.ExecuteRemoteTask.run" title="Permalink to this definition">¶</a></dt>
  76. <dd><table class="docutils field-list" frame="void" rules="none">
  77. <col class="field-name" />
  78. <col class="field-body" />
  79. <tbody valign="top">
  80. <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  81. <li><em>ser_callable</em> &#8211; A pickled function or callable object.</li>
  82. <li><em>fargs</em> &#8211; Positional arguments to apply to the function.</li>
  83. <li><em>fkwargs</em> &#8211; Keyword arguments to apply to the function.</li>
  84. </ul>
  85. </td>
  86. </tr>
  87. </tbody>
  88. </table>
  89. </dd></dl>
  90. </dd></dl>
  91. <dl class="class">
  92. <dt id="celery.task.PeriodicTask">
  93. <em class="property">
  94. class </em><tt class="descclassname">celery.task.</tt><tt class="descname">PeriodicTask</tt><a class="headerlink" href="#celery.task.PeriodicTask" title="Permalink to this definition">¶</a></dt>
  95. <dd><p>A periodic task is a task that behaves like a <em>cron</em> job.</p>
  96. <dl class="attribute">
  97. <dt id="celery.task.PeriodicTask.run_every">
  98. <tt class="descname">run_every</tt><a class="headerlink" href="#celery.task.PeriodicTask.run_every" title="Permalink to this definition">¶</a></dt>
  99. <dd><em>REQUIRED</em> Defines how often the task is run (its interval),
  100. it can be either a <tt class="xref docutils literal"><span class="pre">datetime.timedelta</span></tt> object or an
  101. integer specifying the time in seconds.</dd></dl>
  102. <table class="docutils field-list" frame="void" rules="none">
  103. <col class="field-name" />
  104. <col class="field-body" />
  105. <tbody valign="top">
  106. <tr class="field"><th class="field-name" colspan="2">Raises NotImplementedError:</th></tr>
  107. <tr><td>&nbsp;</td><td class="field-body">if the <a title="celery.task.PeriodicTask.run_every" class="reference internal" href="#celery.task.PeriodicTask.run_every"><tt class="xref docutils literal"><span class="pre">run_every</span></tt></a> attribute is
  108. not defined.</td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. <p>You have to register the periodic task in the task registry.</p>
  113. <p>Example</p>
  114. <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">tasks</span><span class="p">,</span> <span class="n">PeriodicTask</span>
  115. <span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">timedelta</span>
  116. <span class="gp">&gt;&gt;&gt; </span><span class="k">class</span> <span class="nc">MyPeriodicTask</span><span class="p">(</span><span class="n">PeriodicTask</span><span class="p">):</span>
  117. <span class="gp">... </span> <span class="n">name</span> <span class="o">=</span> <span class="s">&quot;my_periodic_task&quot;</span>
  118. <span class="gp">... </span> <span class="n">run_every</span> <span class="o">=</span> <span class="n">timedelta</span><span class="p">(</span><span class="n">seconds</span><span class="o">=</span><span class="mf">30</span><span class="p">)</span>
  119. <span class="gp">...</span>
  120. <span class="gp">... </span> <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
  121. <span class="gp">... </span> <span class="n">logger</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_logger</span><span class="p">(</span><span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
  122. <span class="gp">... </span> <span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s">&quot;Running MyPeriodicTask&quot;</span><span class="p">)</span>
  123. <span class="gp">&gt;&gt;&gt; </span><span class="n">tasks</span><span class="o">.</span><span class="n">register</span><span class="p">(</span><span class="n">MyPeriodicTask</span><span class="p">)</span>
  124. </pre></div>
  125. </div>
  126. </dd></dl>
  127. <dl class="class">
  128. <dt id="celery.task.Task">
  129. <em class="property">
  130. class </em><tt class="descclassname">celery.task.</tt><tt class="descname">Task</tt><a class="headerlink" href="#celery.task.Task" title="Permalink to this definition">¶</a></dt>
  131. <dd><p>A task that can be delayed for execution by the <tt class="docutils literal"><span class="pre">celery</span></tt> daemon.</p>
  132. <p>All subclasses of <a title="celery.task.Task" class="reference internal" href="#celery.task.Task"><tt class="xref docutils literal"><span class="pre">Task</span></tt></a> must define the <a title="celery.task.Task.run" class="reference internal" href="#celery.task.Task.run"><tt class="xref docutils literal"><span class="pre">run()</span></tt></a> method,
  133. which is the actual method the <tt class="docutils literal"><span class="pre">celery</span></tt> daemon executes.</p>
  134. <p>The <a title="celery.task.Task.run" class="reference internal" href="#celery.task.Task.run"><tt class="xref docutils literal"><span class="pre">run()</span></tt></a> method supports both positional, and keyword arguments.</p>
  135. <dl class="attribute">
  136. <dt id="celery.task.Task.name">
  137. <tt class="descname">name</tt><a class="headerlink" href="#celery.task.Task.name" title="Permalink to this definition">¶</a></dt>
  138. <dd><em>REQUIRED</em> All subclasses of <a title="celery.task.Task" class="reference internal" href="#celery.task.Task"><tt class="xref docutils literal"><span class="pre">Task</span></tt></a> has to define the
  139. <a title="celery.task.Task.name" class="reference internal" href="#celery.task.Task.name"><tt class="xref docutils literal"><span class="pre">name</span></tt></a> attribute. This is the name of the task, registered
  140. in the task registry, and passed to <a title="celery.task.delay_task" class="reference internal" href="#celery.task.delay_task"><tt class="xref docutils literal"><span class="pre">delay_task()</span></tt></a>.</dd></dl>
  141. <dl class="attribute">
  142. <dt id="celery.task.Task.type">
  143. <tt class="descname">type</tt><a class="headerlink" href="#celery.task.Task.type" title="Permalink to this definition">¶</a></dt>
  144. <dd>The type of task, currently this can be <tt class="docutils literal"><span class="pre">regular</span></tt>, or <tt class="docutils literal"><span class="pre">periodic</span></tt>,
  145. however if you want a periodic task, you should subclass
  146. <a title="celery.task.PeriodicTask" class="reference internal" href="#celery.task.PeriodicTask"><tt class="xref docutils literal"><span class="pre">PeriodicTask</span></tt></a> instead.</dd></dl>
  147. <table class="docutils field-list" frame="void" rules="none">
  148. <col class="field-name" />
  149. <col class="field-body" />
  150. <tbody valign="top">
  151. <tr class="field"><th class="field-name" colspan="2">Raises NotImplementedError:</th></tr>
  152. <tr><td>&nbsp;</td><td class="field-body">if the <a title="celery.task.Task.name" class="reference internal" href="#celery.task.Task.name"><tt class="xref docutils literal"><span class="pre">name</span></tt></a> attribute is not set.</td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. <p>The resulting class is callable, which if called will apply the
  157. <a title="celery.task.Task.run" class="reference internal" href="#celery.task.Task.run"><tt class="xref docutils literal"><span class="pre">run()</span></tt></a> method.</p>
  158. <p>Examples</p>
  159. <p>This is a simple task just logging a message,</p>
  160. <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">tasks</span><span class="p">,</span> <span class="n">Task</span>
  161. <span class="gp">&gt;&gt;&gt; </span><span class="k">class</span> <span class="nc">MyTask</span><span class="p">(</span><span class="n">Task</span><span class="p">):</span>
  162. <span class="gp">... </span> <span class="n">name</span> <span class="o">=</span> <span class="s">&quot;mytask&quot;</span>
  163. <span class="gp">...</span>
  164. <span class="gp">... </span> <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">some_arg</span><span class="o">=</span><span class="bp">None</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
  165. <span class="gp">... </span> <span class="n">logger</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_logger</span><span class="p">(</span><span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
  166. <span class="gp">... </span> <span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s">&quot;Running MyTask with arg some_arg=</span><span class="si">%s</span><span class="s">&quot;</span> <span class="o">%</span>
  167. <span class="gp">... </span> <span class="n">some_arg</span><span class="p">))</span>
  168. <span class="gp">... </span> <span class="k">return</span> <span class="mf">42</span>
  169. <span class="gp">... </span><span class="n">tasks</span><span class="o">.</span><span class="n">register</span><span class="p">(</span><span class="n">MyTask</span><span class="p">)</span>
  170. </pre></div>
  171. </div>
  172. <p>You can delay the task using the classmethod <a title="celery.task.Task.delay" class="reference internal" href="#celery.task.Task.delay"><tt class="xref docutils literal"><span class="pre">delay()</span></tt></a>...</p>
  173. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">result</span> <span class="o">=</span> <span class="n">MyTask</span><span class="o">.</span><span class="n">delay</span><span class="p">(</span><span class="n">some_arg</span><span class="o">=</span><span class="s">&quot;foo&quot;</span><span class="p">)</span>
  174. <span class="gp">&gt;&gt;&gt; </span><span class="n">result</span><span class="o">.</span><span class="n">status</span> <span class="c"># after some time</span>
  175. <span class="go">&#39;DONE&#39;</span>
  176. <span class="gp">&gt;&gt;&gt; </span><span class="n">result</span><span class="o">.</span><span class="n">result</span>
  177. <span class="go">42</span>
  178. </pre></div>
  179. </div>
  180. <p>...or using the <a title="celery.task.delay_task" class="reference internal" href="#celery.task.delay_task"><tt class="xref docutils literal"><span class="pre">delay_task()</span></tt></a> function, by passing the name of
  181. the task.</p>
  182. <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">delay_task</span>
  183. <span class="gp">&gt;&gt;&gt; </span><span class="n">result</span> <span class="o">=</span> <span class="n">delay_task</span><span class="p">(</span><span class="n">MyTask</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">some_arg</span><span class="o">=</span><span class="s">&quot;foo&quot;</span><span class="p">)</span>
  184. </pre></div>
  185. </div>
  186. <dl class="classmethod">
  187. <dt id="celery.task.Task.delay">
  188. <em class="property">
  189. classmethod </em><tt class="descname">delay</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.task.Task.delay" title="Permalink to this definition">¶</a></dt>
  190. <dd><p>Delay this task for execution by the <tt class="docutils literal"><span class="pre">celery</span></tt> daemon(s).</p>
  191. <table class="docutils field-list" frame="void" rules="none">
  192. <col class="field-name" />
  193. <col class="field-body" />
  194. <tbody valign="top">
  195. <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  196. <li><em>*args</em> &#8211; positional arguments passed on to the task.</li>
  197. <li><em>**kwargs</em> &#8211; keyword arguments passed on to the task.</li>
  198. </ul>
  199. </td>
  200. </tr>
  201. <tr class="field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a title="celery.result.AsyncResult" class="reference external" href="celery.result.html#celery.result.AsyncResult"><tt class="xref docutils literal"><span class="pre">celery.result.AsyncResult</span></tt></a></p>
  202. </td>
  203. </tr>
  204. </tbody>
  205. </table>
  206. <p>See <a title="celery.task.delay_task" class="reference internal" href="#celery.task.delay_task"><tt class="xref docutils literal"><span class="pre">delay_task()</span></tt></a>.</p>
  207. </dd></dl>
  208. <dl class="method">
  209. <dt id="celery.task.Task.get_consumer">
  210. <tt class="descname">get_consumer</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.task.Task.get_consumer" title="Permalink to this definition">¶</a></dt>
  211. <dd><p>Get a celery task message consumer.</p>
  212. <table class="docutils field-list" frame="void" rules="none">
  213. <col class="field-name" />
  214. <col class="field-body" />
  215. <tbody valign="top">
  216. <tr class="field"><th class="field-name">Return type:</th><td class="field-body"><a title="celery.messaging.TaskConsumer" class="reference external" href="celery.messaging.html#celery.messaging.TaskConsumer"><tt class="xref docutils literal"><span class="pre">celery.messaging.TaskConsumer</span></tt></a>.</td>
  217. </tr>
  218. </tbody>
  219. </table>
  220. <p>Please be sure to close the AMQP connection when you&#8217;re done
  221. with this object. i.e:</p>
  222. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">consumer</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_consumer</span><span class="p">()</span>
  223. <span class="gp">&gt;&gt;&gt; </span><span class="c"># do something with consumer</span>
  224. <span class="gp">&gt;&gt;&gt; </span><span class="n">consumer</span><span class="o">.</span><span class="n">connection</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
  225. </pre></div>
  226. </div>
  227. </dd></dl>
  228. <dl class="method">
  229. <dt id="celery.task.Task.get_logger">
  230. <tt class="descname">get_logger</tt><big>(</big><em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.task.Task.get_logger" title="Permalink to this definition">¶</a></dt>
  231. <dd><p>Get process-aware logger object.</p>
  232. <p>See <a title="celery.log.setup_logger" class="reference external" href="celery.log.html#celery.log.setup_logger"><tt class="xref docutils literal"><span class="pre">celery.log.setup_logger()</span></tt></a>.</p>
  233. </dd></dl>
  234. <dl class="method">
  235. <dt id="celery.task.Task.get_publisher">
  236. <tt class="descname">get_publisher</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.task.Task.get_publisher" title="Permalink to this definition">¶</a></dt>
  237. <dd><p>Get a celery task message publisher.</p>
  238. <table class="docutils field-list" frame="void" rules="none">
  239. <col class="field-name" />
  240. <col class="field-body" />
  241. <tbody valign="top">
  242. <tr class="field"><th class="field-name">Return type:</th><td class="field-body"><a title="celery.messaging.TaskPublisher" class="reference external" href="celery.messaging.html#celery.messaging.TaskPublisher"><tt class="xref docutils literal"><span class="pre">celery.messaging.TaskPublisher</span></tt></a>.</td>
  243. </tr>
  244. </tbody>
  245. </table>
  246. <p>Please be sure to close the AMQP connection when you&#8217;re done
  247. with this object, i.e:</p>
  248. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">publisher</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_publisher</span><span class="p">()</span>
  249. <span class="gp">&gt;&gt;&gt; </span><span class="c"># do something with publisher</span>
  250. <span class="gp">&gt;&gt;&gt; </span><span class="n">publisher</span><span class="o">.</span><span class="n">connection</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
  251. </pre></div>
  252. </div>
  253. </dd></dl>
  254. <dl class="method">
  255. <dt id="celery.task.Task.run">
  256. <tt class="descname">run</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.task.Task.run" title="Permalink to this definition">¶</a></dt>
  257. <dd><p><em>REQUIRED</em> The actual task.</p>
  258. <p>All subclasses of <a title="celery.task.Task" class="reference internal" href="#celery.task.Task"><tt class="xref docutils literal"><span class="pre">Task</span></tt></a> must define the run method.</p>
  259. <table class="docutils field-list" frame="void" rules="none">
  260. <col class="field-name" />
  261. <col class="field-body" />
  262. <tbody valign="top">
  263. <tr class="field"><th class="field-name" colspan="2">Raises NotImplementedError:</th></tr>
  264. <tr><td>&nbsp;</td><td class="field-body">by default, so you have to override
  265. this method in your subclass.</td>
  266. </tr>
  267. </tbody>
  268. </table>
  269. </dd></dl>
  270. </dd></dl>
  271. <dl class="class">
  272. <dt id="celery.task.TaskSet">
  273. <em class="property">
  274. class </em><tt class="descclassname">celery.task.</tt><tt class="descname">TaskSet</tt><big>(</big><em>task</em>, <em>args</em><big>)</big><a class="headerlink" href="#celery.task.TaskSet" title="Permalink to this definition">¶</a></dt>
  275. <dd><p>A task containing several subtasks, making it possible
  276. to track how many, or when all of the tasks has been completed.</p>
  277. <table class="docutils field-list" frame="void" rules="none">
  278. <col class="field-name" />
  279. <col class="field-body" />
  280. <tbody valign="top">
  281. <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  282. <li><em>task</em> &#8211; The task class or name.
  283. Can either be a fully qualified task name, or a task class.</li>
  284. <li><em>args</em> &#8211; A list of args, kwargs pairs.
  285. e.g. <tt class="docutils literal"><span class="pre">[[args1,</span> <span class="pre">kwargs1],</span> <span class="pre">[args2,</span> <span class="pre">kwargs2],</span> <span class="pre">...,</span> <span class="pre">[argsN,</span> <span class="pre">kwargsN]]</span></tt></li>
  286. </ul>
  287. </td>
  288. </tr>
  289. </tbody>
  290. </table>
  291. <dl class="attribute">
  292. <dt id="celery.task.TaskSet.task_name">
  293. <tt class="descname">task_name</tt><a class="headerlink" href="#celery.task.TaskSet.task_name" title="Permalink to this definition">¶</a></dt>
  294. <dd>The name of the task.</dd></dl>
  295. <dl class="attribute">
  296. <dt id="celery.task.TaskSet.arguments">
  297. <tt class="descname">arguments</tt><a class="headerlink" href="#celery.task.TaskSet.arguments" title="Permalink to this definition">¶</a></dt>
  298. <dd>The arguments, as passed to the task set constructor.</dd></dl>
  299. <dl class="attribute">
  300. <dt id="celery.task.TaskSet.total">
  301. <tt class="descname">total</tt><a class="headerlink" href="#celery.task.TaskSet.total" title="Permalink to this definition">¶</a></dt>
  302. <dd>Total number of tasks in this task set.</dd></dl>
  303. <p>Example</p>
  304. <blockquote>
  305. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">djangofeeds.tasks</span> <span class="kn">import</span> <span class="n">RefreshFeedTask</span>
  306. <span class="gp">&gt;&gt;&gt; </span><span class="n">taskset</span> <span class="o">=</span> <span class="n">TaskSet</span><span class="p">(</span><span class="n">RefreshFeedTask</span><span class="p">,</span> <span class="n">args</span><span class="o">=</span><span class="p">[</span>
  307. <span class="gp">... </span> <span class="p">[],</span> <span class="p">{</span><span class="s">&quot;feed_url&quot;</span><span class="p">:</span> <span class="s">&quot;http://cnn.com/rss&quot;</span><span class="p">},</span>
  308. <span class="gp">... </span> <span class="p">[],</span> <span class="p">{</span><span class="s">&quot;feed_url&quot;</span><span class="p">:</span> <span class="s">&quot;http://bbc.com/rss&quot;</span><span class="p">},</span>
  309. <span class="gp">... </span> <span class="p">[],</span> <span class="p">{</span><span class="s">&quot;feed_url&quot;</span><span class="p">:</span> <span class="s">&quot;http://xkcd.com/rss&quot;</span><span class="p">}])</span>
  310. </pre></div>
  311. </div>
  312. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">taskset_id</span><span class="p">,</span> <span class="n">subtask_ids</span> <span class="o">=</span> <span class="n">taskset</span><span class="o">.</span><span class="n">run</span><span class="p">()</span>
  313. <span class="gp">&gt;&gt;&gt; </span><span class="n">list_of_return_values</span> <span class="o">=</span> <span class="n">taskset</span><span class="o">.</span><span class="n">join</span><span class="p">()</span>
  314. </pre></div>
  315. </div>
  316. </blockquote>
  317. <dl class="method">
  318. <dt id="celery.task.TaskSet.iterate">
  319. <tt class="descname">iterate</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.task.TaskSet.iterate" title="Permalink to this definition">¶</a></dt>
  320. <dd><p>Iterate over the results returned after calling <a title="celery.task.TaskSet.run" class="reference internal" href="#celery.task.TaskSet.run"><tt class="xref docutils literal"><span class="pre">run()</span></tt></a>.</p>
  321. <p>If any of the tasks raises an exception, the exception will
  322. be re-raised.</p>
  323. </dd></dl>
  324. <dl class="method">
  325. <dt id="celery.task.TaskSet.join">
  326. <tt class="descname">join</tt><big>(</big><em>timeout=None</em><big>)</big><a class="headerlink" href="#celery.task.TaskSet.join" title="Permalink to this definition">¶</a></dt>
  327. <dd><p>Gather the results for all of the tasks in the taskset,
  328. and return a list with them ordered by the order of which they
  329. were called.</p>
  330. <table class="docutils field-list" frame="void" rules="none">
  331. <col class="field-name" />
  332. <col class="field-body" />
  333. <tbody valign="top">
  334. <tr class="field"><th class="field-name">Parameter:</th><td class="field-body"><em>timeout</em> &#8211; The time in seconds, how long
  335. it will wait for results, before the operation times out.</td>
  336. </tr>
  337. <tr class="field"><th class="field-name" colspan="2">Raises <a title="celery.timer.TimeoutError" class="reference external" href="celery.timer.html#celery.timer.TimeoutError">celery.timer.TimeoutError</a>:</th></tr>
  338. <tr><td>&nbsp;</td><td class="field-body">if <tt class="docutils literal"><span class="pre">timeout</span></tt> is not <tt class="xref docutils literal"><span class="pre">None</span></tt>
  339. and the operation takes longer than <tt class="docutils literal"><span class="pre">timeout</span></tt> seconds.</td>
  340. </tr>
  341. </tbody>
  342. </table>
  343. <p>If any of the tasks raises an exception, the exception
  344. will be reraised by <a title="celery.task.TaskSet.join" class="reference internal" href="#celery.task.TaskSet.join"><tt class="xref docutils literal"><span class="pre">join()</span></tt></a>.</p>
  345. <table class="docutils field-list" frame="void" rules="none">
  346. <col class="field-name" />
  347. <col class="field-body" />
  348. <tbody valign="top">
  349. <tr class="field"><th class="field-name">Returns:</th><td class="field-body">list of return values for all tasks in the taskset.</td>
  350. </tr>
  351. </tbody>
  352. </table>
  353. </dd></dl>
  354. <dl class="classmethod">
  355. <dt id="celery.task.TaskSet.map">
  356. <em class="property">
  357. classmethod </em><tt class="descname">map</tt><big>(</big><em>func</em>, <em>args</em>, <em>timeout=None</em><big>)</big><a class="headerlink" href="#celery.task.TaskSet.map" title="Permalink to this definition">¶</a></dt>
  358. <dd>Distribute processing of the arguments and collect the results.</dd></dl>
  359. <dl class="classmethod">
  360. <dt id="celery.task.TaskSet.map_async">
  361. <em class="property">
  362. classmethod </em><tt class="descname">map_async</tt><big>(</big><em>func</em>, <em>args</em>, <em>timeout=None</em><big>)</big><a class="headerlink" href="#celery.task.TaskSet.map_async" title="Permalink to this definition">¶</a></dt>
  363. <dd><p>Distribute processing of the arguments and collect the results
  364. asynchronously.</p>
  365. <table class="docutils field-list" frame="void" rules="none">
  366. <col class="field-name" />
  367. <col class="field-body" />
  368. <tbody valign="top">
  369. <tr class="field"><th class="field-name">Returns:</th><td class="field-body"><a title="celery.result.AsyncResult" class="reference external" href="celery.result.html#celery.result.AsyncResult"><tt class="xref docutils literal"><span class="pre">celery.result.AsyncResult</span></tt></a> instance.</td>
  370. </tr>
  371. </tbody>
  372. </table>
  373. </dd></dl>
  374. <dl class="classmethod">
  375. <dt id="celery.task.TaskSet.remote_execute">
  376. <em class="property">
  377. classmethod </em><tt class="descname">remote_execute</tt><big>(</big><em>func</em>, <em>args</em><big>)</big><a class="headerlink" href="#celery.task.TaskSet.remote_execute" title="Permalink to this definition">¶</a></dt>
  378. <dd>Apply <tt class="docutils literal"><span class="pre">args</span></tt> to function by distributing the args to the
  379. celery server(s).</dd></dl>
  380. <dl class="method">
  381. <dt id="celery.task.TaskSet.run">
  382. <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.task.TaskSet.run" title="Permalink to this definition">¶</a></dt>
  383. <dd><p>Run all tasks in the taskset.</p>
  384. <table class="docutils field-list" frame="void" rules="none">
  385. <col class="field-name" />
  386. <col class="field-body" />
  387. <tbody valign="top">
  388. <tr class="field"><th class="field-name">Returns:</th><td class="field-body">A tuple containing the taskset id, and a list
  389. of subtask ids.</td>
  390. </tr>
  391. <tr class="field"><th class="field-name">Return type:</th><td class="field-body">tuple</td>
  392. </tr>
  393. </tbody>
  394. </table>
  395. <p>Example</p>
  396. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">ts</span> <span class="o">=</span> <span class="n">RefreshFeeds</span><span class="p">([</span>
  397. <span class="gp">... </span> <span class="p">[</span><span class="s">&quot;http://foo.com/rss&quot;</span><span class="p">,</span> <span class="p">{}],</span>
  398. <span class="gp">... </span> <span class="p">[</span><span class="s">&quot;http://bar.com/rss&quot;</span><span class="p">,</span> <span class="p">{}],</span>
  399. <span class="gp">... </span><span class="p">)</span>
  400. <span class="gp">&gt;&gt;&gt; </span><span class="n">taskset_id</span><span class="p">,</span> <span class="n">subtask_ids</span> <span class="o">=</span> <span class="n">ts</span><span class="o">.</span><span class="n">run</span><span class="p">()</span>
  401. <span class="gp">&gt;&gt;&gt; </span><span class="n">taskset_id</span>
  402. <span class="go">&quot;d2c9b261-8eff-4bfb-8459-1e1b72063514&quot;</span>
  403. <span class="gp">&gt;&gt;&gt; </span><span class="n">subtask_ids</span>
  404. <span class="go">[&quot;b4996460-d959-49c8-aeb9-39c530dcde25&quot;,</span>
  405. <span class="go">&quot;598d2d18-ab86-45ca-8b4f-0779f5d6a3cb&quot;]</span>
  406. <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">10</span><span class="p">)</span>
  407. <span class="gp">&gt;&gt;&gt; </span><span class="n">is_done</span><span class="p">(</span><span class="n">taskset_id</span><span class="p">)</span>
  408. <span class="go">True</span>
  409. </pre></div>
  410. </div>
  411. </dd></dl>
  412. </dd></dl>
  413. <dl class="function">
  414. <dt id="celery.task.delay_task">
  415. <tt class="descclassname">celery.task.</tt><tt class="descname">delay_task</tt><big>(</big><em>task_name</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.task.delay_task" title="Permalink to this definition">¶</a></dt>
  416. <dd><p>Delay a task for execution by the <tt class="docutils literal"><span class="pre">celery</span></tt> daemon.</p>
  417. <table class="docutils field-list" frame="void" rules="none">
  418. <col class="field-name" />
  419. <col class="field-body" />
  420. <tbody valign="top">
  421. <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  422. <li><em>task_name</em> &#8211; the name of a task registered in the task registry.</li>
  423. <li><em>*args</em> &#8211; positional arguments to pass on to the task.</li>
  424. <li><em>**kwargs</em> &#8211; keyword arguments to pass on to the task.</li>
  425. </ul>
  426. </td>
  427. </tr>
  428. <tr class="field"><th class="field-name" colspan="2">Raises <a title="celery.registry.NotRegistered" class="reference external" href="celery.registry.html#celery.registry.NotRegistered">celery.registry.NotRegistered</a>:</th></tr>
  429. <tr><td>&nbsp;</td><td class="field-body"><p class="first">exception if no such task
  430. has been registered in the task registry.</p>
  431. </td>
  432. </tr>
  433. <tr class="field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><a title="celery.result.AsyncResult" class="reference external" href="celery.result.html#celery.result.AsyncResult"><tt class="xref docutils literal"><span class="pre">celery.result.AsyncResult</span></tt></a>.</p>
  434. </td>
  435. </tr>
  436. </tbody>
  437. </table>
  438. <p>Example</p>
  439. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">r</span> <span class="o">=</span> <span class="n">delay_task</span><span class="p">(</span><span class="s">&quot;update_record&quot;</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="s">&quot;George Constanza&quot;</span><span class="p">,</span> <span class="n">age</span><span class="o">=</span><span class="mf">32</span><span class="p">)</span>
  440. <span class="gp">&gt;&gt;&gt; </span><span class="n">r</span><span class="o">.</span><span class="n">ready</span><span class="p">()</span>
  441. <span class="go">True</span>
  442. <span class="gp">&gt;&gt;&gt; </span><span class="n">r</span><span class="o">.</span><span class="n">result</span>
  443. <span class="go">&quot;Record was updated&quot;</span>
  444. </pre></div>
  445. </div>
  446. </dd></dl>
  447. <dl class="function">
  448. <dt id="celery.task.discard_all">
  449. <tt class="descclassname">celery.task.</tt><tt class="descname">discard_all</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.task.discard_all" title="Permalink to this definition">¶</a></dt>
  450. <dd><p>Discard all waiting tasks.</p>
  451. <p>This will ignore all tasks waiting for execution, and they will
  452. be deleted from the messaging server.</p>
  453. <table class="docutils field-list" frame="void" rules="none">
  454. <col class="field-name" />
  455. <col class="field-body" />
  456. <tbody valign="top">
  457. <tr class="field"><th class="field-name">Returns:</th><td class="field-body">the number of tasks discarded.</td>
  458. </tr>
  459. <tr class="field"><th class="field-name">Return type:</th><td class="field-body">int</td>
  460. </tr>
  461. </tbody>
  462. </table>
  463. </dd></dl>
  464. <dl class="function">
  465. <dt id="celery.task.dmap">
  466. <tt class="descclassname">celery.task.</tt><tt class="descname">dmap</tt><big>(</big><em>func</em>, <em>args</em>, <em>timeout=None</em><big>)</big><a class="headerlink" href="#celery.task.dmap" title="Permalink to this definition">¶</a></dt>
  467. <dd><p>Distribute processing of the arguments and collect the results.</p>
  468. <p>Example</p>
  469. <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="nb">map</span>
  470. <span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">operator</span>
  471. <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>
  472. <span class="go">[4, 8, 16]</span>
  473. </pre></div>
  474. </div>
  475. </dd></dl>
  476. <dl class="function">
  477. <dt id="celery.task.dmap_async">
  478. <tt class="descclassname">celery.task.</tt><tt class="descname">dmap_async</tt><big>(</big><em>func</em>, <em>args</em>, <em>timeout=None</em><big>)</big><a class="headerlink" href="#celery.task.dmap_async" title="Permalink to this definition">¶</a></dt>
  479. <dd><p>Distribute processing of the arguments and collect the results
  480. asynchronously.</p>
  481. <table class="docutils field-list" frame="void" rules="none">
  482. <col class="field-name" />
  483. <col class="field-body" />
  484. <tbody valign="top">
  485. <tr class="field"><th class="field-name">Returns:</th><td class="field-body"><a title="celery.result.AsyncResult" class="reference external" href="celery.result.html#celery.result.AsyncResult"><tt class="xref docutils literal"><span class="pre">celery.result.AsyncResult</span></tt></a> object.</td>
  486. </tr>
  487. </tbody>
  488. </table>
  489. <p>Example</p>
  490. <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>
  491. <span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">operator</span>
  492. <span class="gp">&gt;&gt;&gt; </span><span class="n">presult</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>
  493. <span class="gp">&gt;&gt;&gt; </span><span class="n">presult</span>
  494. <span class="go">&lt;AsyncResult: 373550e8-b9a0-4666-bc61-ace01fa4f91d&gt;</span>
  495. <span class="gp">&gt;&gt;&gt; </span><span class="n">presult</span><span class="o">.</span><span class="n">status</span>
  496. <span class="go">&#39;DONE&#39;</span>
  497. <span class="gp">&gt;&gt;&gt; </span><span class="n">presult</span><span class="o">.</span><span class="n">result</span>
  498. <span class="go">[4, 8, 16]</span>
  499. </pre></div>
  500. </div>
  501. </dd></dl>
  502. <dl class="function">
  503. <dt id="celery.task.execute_remote">
  504. <tt class="descclassname">celery.task.</tt><tt class="descname">execute_remote</tt><big>(</big><em>func</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.task.execute_remote" title="Permalink to this definition">¶</a></dt>
  505. <dd><p>Execute arbitrary function/object remotely.</p>
  506. <table class="docutils field-list" frame="void" rules="none">
  507. <col class="field-name" />
  508. <col class="field-body" />
  509. <tbody valign="top">
  510. <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  511. <li><em>func</em> &#8211; A callable function or object.</li>
  512. <li><em>*args</em> &#8211; Positional arguments to apply to the function.</li>
  513. <li><em>**kwargs</em> &#8211; Keyword arguments to apply to the function.</li>
  514. </ul>
  515. </td>
  516. </tr>
  517. </tbody>
  518. </table>
  519. <p>The object must be picklable, so you can&#8217;t use lambdas or functions
  520. defined in the REPL (the objects must have an associated module).</p>
  521. <table class="docutils field-list" frame="void" rules="none">
  522. <col class="field-name" />
  523. <col class="field-body" />
  524. <tbody valign="top">
  525. <tr class="field"><th class="field-name">Returns:</th><td class="field-body">class:<cite>celery.result.AsyncResult</cite>.</td>
  526. </tr>
  527. </tbody>
  528. </table>
  529. </dd></dl>
  530. <dl class="function">
  531. <dt id="celery.task.is_done">
  532. <tt class="descclassname">celery.task.</tt><tt class="descname">is_done</tt><big>(</big><em>task_id</em><big>)</big><a class="headerlink" href="#celery.task.is_done" title="Permalink to this definition">¶</a></dt>
  533. <dd><p>Returns <tt class="xref docutils literal"><span class="pre">True</span></tt> if task with <tt class="docutils literal"><span class="pre">task_id</span></tt> has been executed.</p>
  534. <table class="docutils field-list" frame="void" rules="none">
  535. <col class="field-name" />
  536. <col class="field-body" />
  537. <tbody valign="top">
  538. <tr class="field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
  539. </tr>
  540. </tbody>
  541. </table>
  542. </dd></dl>
  543. <dl class="function">
  544. <dt id="celery.task.mark_as_done">
  545. <tt class="descclassname">celery.task.</tt><tt class="descname">mark_as_done</tt><big>(</big><em>task_id</em>, <em>result</em><big>)</big><a class="headerlink" href="#celery.task.mark_as_done" title="Permalink to this definition">¶</a></dt>
  546. <dd><p>Mark task as done (executed successfully).</p>
  547. <table class="docutils field-list" frame="void" rules="none">
  548. <col class="field-name" />
  549. <col class="field-body" />
  550. <tbody valign="top">
  551. <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  552. <li><em>task_id</em> &#8211; id of the task.</li>
  553. <li><em>result</em> &#8211; the return value of the task.</li>
  554. </ul>
  555. </td>
  556. </tr>
  557. </tbody>
  558. </table>
  559. </dd></dl>
  560. <dl class="function">
  561. <dt id="celery.task.mark_as_failure">
  562. <tt class="descclassname">celery.task.</tt><tt class="descname">mark_as_failure</tt><big>(</big><em>task_id</em>, <em>exc</em><big>)</big><a class="headerlink" href="#celery.task.mark_as_failure" title="Permalink to this definition">¶</a></dt>
  563. <dd><p>Mark task as done (executed).</p>
  564. <table class="docutils field-list" frame="void" rules="none">
  565. <col class="field-name" />
  566. <col class="field-body" />
  567. <tbody valign="top">
  568. <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  569. <li><em>task_id</em> &#8211; id of the task.</li>
  570. <li><em>exc</em> &#8211; the exception instance raised by the task.</li>
  571. </ul>
  572. </td>
  573. </tr>
  574. </tbody>
  575. </table>
  576. </dd></dl>
  577. </div>
  578. </div>
  579. </div>
  580. </div>
  581. <div class="sphinxsidebar">
  582. <div class="sphinxsidebarwrapper">
  583. <h4>Previous topic</h4>
  584. <p class="topless"><a href="../index.html"
  585. title="previous chapter">Welcome to Celery&#8217;s documentation!</a></p>
  586. <h4>Next topic</h4>
  587. <p class="topless"><a href="celery.result.html"
  588. title="next chapter">Task Result - celery.result</a></p>
  589. <h3>This Page</h3>
  590. <ul class="this-page-menu">
  591. <li><a href="../sources/reference/celery.task.txt"
  592. rel="nofollow">Show Source</a></li>
  593. </ul>
  594. <div id="searchbox" style="display: none">
  595. <h3>Quick search</h3>
  596. <form class="search" action="../search.html" method="get">
  597. <input type="text" name="q" size="18" />
  598. <input type="submit" value="Go" />
  599. <input type="hidden" name="check_keywords" value="yes" />
  600. <input type="hidden" name="area" value="default" />
  601. </form>
  602. <p class="searchtip" style="font-size: 90%">
  603. Enter search terms or a module, class or function name.
  604. </p>
  605. </div>
  606. <script type="text/javascript">$('#searchbox').show(0);</script>
  607. </div>
  608. </div>
  609. <div class="clearer"></div>
  610. </div>
  611. <div class="related">
  612. <h3>Navigation</h3>
  613. <ul>
  614. <li class="right" style="margin-right: 10px">
  615. <a href="../genindex.html" title="General Index"
  616. >index</a></li>
  617. <li class="right" >
  618. <a href="../modindex.html" title="Global Module Index"
  619. >modules</a> |</li>
  620. <li class="right" >
  621. <a href="celery.result.html" title="Task Result - celery.result"
  622. >next</a> |</li>
  623. <li class="right" >
  624. <a href="../index.html" title="Welcome to Celery’s documentation!"
  625. >previous</a> |</li>
  626. <li><a href="../index.html">Celery v0.1.15 documentation</a> &raquo;</li>
  627. </ul>
  628. </div>
  629. <div class="footer">
  630. &copy; Copyright 2009, Ask Solem.
  631. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.1.
  632. </div>
  633. </body>
  634. </html>