celery.backends.tyrant.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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>Backend: Tokyo Tyrant - celery.backends.tyrant &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="up" title="Module API Reference" href="index.html" />
  22. <link rel="next" title="Configuration - celery.conf" href="celery.conf.html" />
  23. <link rel="prev" title="Backend: Cache - celery.backends.cache" href="celery.backends.cache.html" />
  24. </head>
  25. <body>
  26. <div class="header-wrapper">
  27. <div class="header">
  28. <h1><a href="../index.html">Celery v0.3.5 (unstable) documentation</a></h1>
  29. <div class="rel">
  30. <a href="../genindex.html" title="General Index"
  31. accesskey="I">index</a> |
  32. <a href="../modindex.html" title="Global Module Index"
  33. accesskey="M">modules</a> |
  34. <a href="celery.conf.html" title="Configuration - celery.conf"
  35. accesskey="N">next</a> |
  36. <a href="celery.backends.cache.html" title="Backend: Cache - celery.backends.cache"
  37. accesskey="P">previous</a>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="content-wrapper">
  42. <div class="content">
  43. <div class="document">
  44. <div class="documentwrapper">
  45. <div class="bodywrapper">
  46. <div class="body">
  47. <div class="section" id="module-celery.backends.tyrant">
  48. <h1>Backend: Tokyo Tyrant - celery.backends.tyrant<a class="headerlink" href="#module-celery.backends.tyrant" title="Permalink to this headline">¶</a></h1>
  49. <p>celery.backends.tyrant</p>
  50. <dl class="class">
  51. <dt id="celery.backends.tyrant.Backend">
  52. <em class="property">
  53. class </em><tt class="descclassname">celery.backends.tyrant.</tt><tt class="descname">Backend</tt><big>(</big><em>tyrant_host=None</em>, <em>tyrant_port=None</em><big>)</big><a class="headerlink" href="#celery.backends.tyrant.Backend" title="Permalink to this definition">¶</a></dt>
  54. <dd><p>Tokyo Cabinet based task backend store.</p>
  55. <dl class="attribute">
  56. <dt id="celery.backends.tyrant.Backend.tyrant_host">
  57. <tt class="descname">tyrant_host</tt><a class="headerlink" href="#celery.backends.tyrant.Backend.tyrant_host" title="Permalink to this definition">¶</a></dt>
  58. <dd>The hostname to the Tokyo Tyrant server.</dd></dl>
  59. <dl class="attribute">
  60. <dt id="celery.backends.tyrant.Backend.tyrant_port">
  61. <tt class="descname">tyrant_port</tt><a class="headerlink" href="#celery.backends.tyrant.Backend.tyrant_port" title="Permalink to this definition">¶</a></dt>
  62. <dd>The port to the Tokyo Tyrant server.</dd></dl>
  63. <dl class="method">
  64. <dt id="celery.backends.tyrant.Backend.get_result">
  65. <tt class="descname">get_result</tt><big>(</big><em>task_id</em><big>)</big><a class="headerlink" href="#celery.backends.tyrant.Backend.get_result" title="Permalink to this definition">¶</a></dt>
  66. <dd>Get the result of a task.</dd></dl>
  67. <dl class="method">
  68. <dt id="celery.backends.tyrant.Backend.get_status">
  69. <tt class="descname">get_status</tt><big>(</big><em>task_id</em><big>)</big><a class="headerlink" href="#celery.backends.tyrant.Backend.get_status" title="Permalink to this definition">¶</a></dt>
  70. <dd>Get the status for a task.</dd></dl>
  71. <dl class="method">
  72. <dt id="celery.backends.tyrant.Backend.is_done">
  73. <tt class="descname">is_done</tt><big>(</big><em>task_id</em><big>)</big><a class="headerlink" href="#celery.backends.tyrant.Backend.is_done" title="Permalink to this definition">¶</a></dt>
  74. <dd>Returns <tt class="xref docutils literal"><span class="pre">True</span></tt> if the task executed successfully.</dd></dl>
  75. <dl class="method">
  76. <dt id="celery.backends.tyrant.Backend.open">
  77. <tt class="descname">open</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.backends.tyrant.Backend.open" title="Permalink to this definition">¶</a></dt>
  78. <dd>Get <tt class="xref docutils literal"><span class="pre">pytyrant.PyTyrant`</span></tt> instance with the current
  79. server configuration.</dd></dl>
  80. <dl class="method">
  81. <dt id="celery.backends.tyrant.Backend.store_result">
  82. <tt class="descname">store_result</tt><big>(</big><em>task_id</em>, <em>result</em>, <em>status</em><big>)</big><a class="headerlink" href="#celery.backends.tyrant.Backend.store_result" title="Permalink to this definition">¶</a></dt>
  83. <dd>Store task result and status.</dd></dl>
  84. </dd></dl>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="sidebar">
  91. <h3>Contents</h3>
  92. <ul class="current">
  93. <li class="toctree-l1"><a class="reference external" href="../introduction.html">celery - Distributed Task Queue for Django.</a></li>
  94. <li class="toctree-l1"><a class="reference external" href="../faq.html">Frequently Asked Questions</a></li>
  95. <li class="toctree-l1 current"><a class="reference external" href="index.html">Module API Reference</a><ul class="current">
  96. <li class="toctree-l2"><a class="reference external" href="celery.task.html">Tasks - celery.task</a></li>
  97. <li class="toctree-l2"><a class="reference external" href="celery.result.html">Task Result - celery.result</a></li>
  98. <li class="toctree-l2"><a class="reference external" href="celery.registry.html">Task Registry - celery.registry</a></li>
  99. <li class="toctree-l2"><a class="reference external" href="celery.discovery.html">Task Discovery - celery.discovery</a></li>
  100. <li class="toctree-l2"><a class="reference external" href="celery.worker.html">Multiprocessing Worker - celery.worker</a></li>
  101. <li class="toctree-l2"><a class="reference external" href="celery.pool.html">Task Pool - celery.pool</a></li>
  102. <li class="toctree-l2"><a class="reference external" href="celery.backends.html">Backends - celery.backends</a></li>
  103. <li class="toctree-l2"><a class="reference external" href="celery.backends.base.html">Backend: Base - celery.backends.base</a></li>
  104. <li class="toctree-l2"><a class="reference external" href="celery.backends.database.html">Backend: Database - celery.backends.database</a></li>
  105. <li class="toctree-l2"><a class="reference external" href="celery.backends.cache.html">Backend: Cache - celery.backends.cache</a></li>
  106. <li class="toctree-l2 current"><a class="current reference external" href="">Backend: Tokyo Tyrant - celery.backends.tyrant</a></li>
  107. <li class="toctree-l2"><a class="reference external" href="celery.conf.html">Configuration - celery.conf</a></li>
  108. <li class="toctree-l2"><a class="reference external" href="celery.datastructures.html">Datastructures - celery.datastructures</a></li>
  109. <li class="toctree-l2"><a class="reference external" href="celery.log.html">Logging - celery.log</a></li>
  110. <li class="toctree-l2"><a class="reference external" href="celery.managers.html">Django Model Managers - celery.managers</a></li>
  111. <li class="toctree-l2"><a class="reference external" href="celery.models.html">Django Models - celery.models</a></li>
  112. <li class="toctree-l2"><a class="reference external" href="celery.messaging.html">Messaging - celery.messaging</a></li>
  113. <li class="toctree-l2"><a class="reference external" href="celery.timer.html">Timers - celery.timer</a></li>
  114. <li class="toctree-l2"><a class="reference external" href="celery.bin.celeryd.html">Celery Worker Daemon - celery.bin.celeryd</a></li>
  115. </ul>
  116. </li>
  117. <li class="toctree-l1"><a class="reference external" href="../changelog.html">Change history</a></li>
  118. </ul>
  119. <h3 style="margin-top: 1.5em;">Search</h3>
  120. <form class="search" action="../search.html" method="get">
  121. <input type="text" name="q" size="18" />
  122. <input type="submit" value="Go" />
  123. <input type="hidden" name="check_keywords" value="yes" />
  124. <input type="hidden" name="area" value="default" />
  125. </form>
  126. <p class="searchtip" style="font-size: 90%">
  127. Enter search terms or a module, class or function name.
  128. </p>
  129. </div>
  130. <div class="clearer"></div>
  131. </div>
  132. </div>
  133. <div class="footer-wrapper">
  134. <div class="footer">
  135. <div class="left">
  136. <a href="../genindex.html" title="General Index"
  137. >index</a> |
  138. <a href="../modindex.html" title="Global Module Index"
  139. >modules</a> |
  140. <a href="celery.conf.html" title="Configuration - celery.conf"
  141. >next</a> |
  142. <a href="celery.backends.cache.html" title="Backend: Cache - celery.backends.cache"
  143. >previous</a>
  144. <br/>
  145. <a href="../sources/reference/celery.backends.tyrant.txt"
  146. rel="nofollow">Show Source</a>
  147. </div>
  148. <div class="right">
  149. &copy; Copyright 2009, Ask Solem.<br/>
  150. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.1.
  151. </div>
  152. <div class="clearer"></div>
  153. </div>
  154. </div>
  155. </body>
  156. </html>