celery.datastructures.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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>Datastructures - celery.datastructures &mdash; Celery v0.6.0 (stable) documentation</title>
  7. <link rel="stylesheet" href="../static/nature.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.6.0 (stable)',
  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.6.0 (stable) documentation" href="../index.html" />
  21. <link rel="up" title="Module API Reference" href="index.html" />
  22. <link rel="next" title="Logging - celery.log" href="celery.log.html" />
  23. <link rel="prev" title="Configuration - celery.conf" href="celery.conf.html" />
  24. </head>
  25. <body>
  26. <div class="related">
  27. <h3>Navigation</h3>
  28. <ul>
  29. <li class="right" style="margin-right: 10px">
  30. <a href="../genindex.html" title="General Index"
  31. accesskey="I">index</a></li>
  32. <li class="right" >
  33. <a href="../modindex.html" title="Global Module Index"
  34. accesskey="M">modules</a> |</li>
  35. <li class="right" >
  36. <a href="celery.log.html" title="Logging - celery.log"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="celery.conf.html" title="Configuration - celery.conf"
  40. accesskey="P">previous</a> |</li>
  41. <li><a href="../index.html">Celery v0.6.0 (stable) documentation</a> &raquo;</li>
  42. <li><a href="index.html" accesskey="U">Module API Reference</a> &raquo;</li>
  43. </ul>
  44. </div>
  45. <div class="document">
  46. <div class="documentwrapper">
  47. <div class="bodywrapper">
  48. <div class="body">
  49. <div class="section" id="module-celery.datastructures">
  50. <h1>Datastructures - celery.datastructures<a class="headerlink" href="#module-celery.datastructures" title="Permalink to this headline">¶</a></h1>
  51. <p>Custom Datastructures</p>
  52. <dl class="class">
  53. <dt id="celery.datastructures.ExceptionInfo">
  54. <em class="property">
  55. class </em><tt class="descclassname">celery.datastructures.</tt><tt class="descname">ExceptionInfo</tt><big>(</big><em>exc_info</em><big>)</big><a class="headerlink" href="#celery.datastructures.ExceptionInfo" title="Permalink to this definition">¶</a></dt>
  56. <dd><p>Exception wrapping an exception and its traceback.</p>
  57. <table class="docutils field-list" frame="void" rules="none">
  58. <col class="field-name" />
  59. <col class="field-body" />
  60. <tbody valign="top">
  61. <tr class="field"><th class="field-name">Parameter:</th><td class="field-body"><em>exc_info</em> &#8211; The exception tuple info as returned by
  62. <tt class="xref docutils literal"><span class="pre">traceback.format_exception()</span></tt>.</td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. <dl class="attribute">
  67. <dt id="celery.datastructures.ExceptionInfo.exception">
  68. <tt class="descname">exception</tt><a class="headerlink" href="#celery.datastructures.ExceptionInfo.exception" title="Permalink to this definition">¶</a></dt>
  69. <dd>The original exception.</dd></dl>
  70. <dl class="attribute">
  71. <dt id="celery.datastructures.ExceptionInfo.traceback">
  72. <tt class="descname">traceback</tt><a class="headerlink" href="#celery.datastructures.ExceptionInfo.traceback" title="Permalink to this definition">¶</a></dt>
  73. <dd>A traceback from the point when <a title="celery.datastructures.ExceptionInfo.exception" class="reference internal" href="#celery.datastructures.ExceptionInfo.exception"><tt class="xref docutils literal"><span class="pre">exception</span></tt></a> was raised.</dd></dl>
  74. </dd></dl>
  75. <dl class="class">
  76. <dt id="celery.datastructures.PositionQueue">
  77. <em class="property">
  78. class </em><tt class="descclassname">celery.datastructures.</tt><tt class="descname">PositionQueue</tt><big>(</big><em>length</em><big>)</big><a class="headerlink" href="#celery.datastructures.PositionQueue" title="Permalink to this definition">¶</a></dt>
  79. <dd><p>A positional queue of a specific length, with slots that are either
  80. filled or unfilled. When all of the positions are filled, the queue
  81. is considered <a title="celery.datastructures.PositionQueue.full" class="reference internal" href="#celery.datastructures.PositionQueue.full"><tt class="xref docutils literal"><span class="pre">full()</span></tt></a>.</p>
  82. <table class="docutils field-list" frame="void" rules="none">
  83. <col class="field-name" />
  84. <col class="field-body" />
  85. <tbody valign="top">
  86. <tr class="field"><th class="field-name">Parameter:</th><td class="field-body"><em>length</em> &#8211; see <a title="celery.datastructures.PositionQueue.length" class="reference internal" href="#celery.datastructures.PositionQueue.length"><tt class="xref docutils literal"><span class="pre">length</span></tt></a>.</td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. <dl class="attribute">
  91. <dt id="celery.datastructures.PositionQueue.length">
  92. <tt class="descname">length</tt><a class="headerlink" href="#celery.datastructures.PositionQueue.length" title="Permalink to this definition">¶</a></dt>
  93. <dd>The number of items required for the queue to be considered full.</dd></dl>
  94. <dl class="class">
  95. <dt id="celery.datastructures.PositionQueue.UnfilledPosition">
  96. <em class="property">
  97. class </em><tt class="descname">UnfilledPosition</tt><big>(</big><em>position</em><big>)</big><a class="headerlink" href="#celery.datastructures.PositionQueue.UnfilledPosition" title="Permalink to this definition">¶</a></dt>
  98. <dd>Describes an unfilled slot.</dd></dl>
  99. <dl class="attribute">
  100. <dt id="celery.datastructures.PositionQueue.filled">
  101. <tt class="descclassname">PositionQueue.</tt><tt class="descname">filled</tt><a class="headerlink" href="#celery.datastructures.PositionQueue.filled" title="Permalink to this definition">¶</a></dt>
  102. <dd>Returns the filled slots as a list.</dd></dl>
  103. <dl class="method">
  104. <dt id="celery.datastructures.PositionQueue.full">
  105. <tt class="descclassname">PositionQueue.</tt><tt class="descname">full</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.datastructures.PositionQueue.full" title="Permalink to this definition">¶</a></dt>
  106. <dd>Returns <tt class="xref docutils literal"><span class="pre">True</span></tt> if all of the slots has been filled.</dd></dl>
  107. </dd></dl>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="sphinxsidebar">
  113. <div class="sphinxsidebarwrapper">
  114. <h4>Previous topic</h4>
  115. <p class="topless"><a href="celery.conf.html"
  116. title="previous chapter">Configuration - celery.conf</a></p>
  117. <h4>Next topic</h4>
  118. <p class="topless"><a href="celery.log.html"
  119. title="next chapter">Logging - celery.log</a></p>
  120. <h3>This Page</h3>
  121. <ul class="this-page-menu">
  122. <li><a href="../sources/reference/celery.datastructures.txt"
  123. rel="nofollow">Show Source</a></li>
  124. </ul>
  125. <div id="searchbox" style="display: none">
  126. <h3>Quick search</h3>
  127. <form class="search" action="../search.html" method="get">
  128. <input type="text" name="q" size="18" />
  129. <input type="submit" value="Go" />
  130. <input type="hidden" name="check_keywords" value="yes" />
  131. <input type="hidden" name="area" value="default" />
  132. </form>
  133. <p class="searchtip" style="font-size: 90%">
  134. Enter search terms or a module, class or function name.
  135. </p>
  136. </div>
  137. <script type="text/javascript">$('#searchbox').show(0);</script>
  138. </div>
  139. </div>
  140. <div class="clearer"></div>
  141. </div>
  142. <div class="related">
  143. <h3>Navigation</h3>
  144. <ul>
  145. <li class="right" style="margin-right: 10px">
  146. <a href="../genindex.html" title="General Index"
  147. >index</a></li>
  148. <li class="right" >
  149. <a href="../modindex.html" title="Global Module Index"
  150. >modules</a> |</li>
  151. <li class="right" >
  152. <a href="celery.log.html" title="Logging - celery.log"
  153. >next</a> |</li>
  154. <li class="right" >
  155. <a href="celery.conf.html" title="Configuration - celery.conf"
  156. >previous</a> |</li>
  157. <li><a href="../index.html">Celery v0.6.0 (stable) documentation</a> &raquo;</li>
  158. <li><a href="index.html" >Module API Reference</a> &raquo;</li>
  159. </ul>
  160. </div>
  161. <div class="footer">
  162. &copy; Copyright 2009, Ask Solem.
  163. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.2.
  164. </div>
  165. </body>
  166. </html>