celery.backends.tyrant.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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.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="Configuration - celery.conf" href="celery.conf.html" />
  22. <link rel="prev" title="Backend: Cache - celery.backends.cache" href="celery.backends.cache.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.conf.html" title="Configuration - celery.conf"
  36. accesskey="N">next</a> |</li>
  37. <li class="right" >
  38. <a href="celery.backends.cache.html" title="Backend: Cache - celery.backends.cache"
  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.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_server">
  69. <tt class="descname">get_server</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.backends.tyrant.Backend.get_server" title="Permalink to this definition">¶</a></dt>
  70. <dd>Get <tt class="xref docutils literal"><span class="pre">pytyrant.PyTyrant`</span></tt> instance with the current
  71. server configuration.</dd></dl>
  72. <dl class="method">
  73. <dt id="celery.backends.tyrant.Backend.get_status">
  74. <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>
  75. <dd>Get the status for a task.</dd></dl>
  76. <dl class="method">
  77. <dt id="celery.backends.tyrant.Backend.is_done">
  78. <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>
  79. <dd>Returns <tt class="xref docutils literal"><span class="pre">True</span></tt> if the task executed successfully.</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 class="sphinxsidebar">
  90. <div class="sphinxsidebarwrapper">
  91. <h4>Previous topic</h4>
  92. <p class="topless"><a href="celery.backends.cache.html"
  93. title="previous chapter">Backend: Cache - celery.backends.cache</a></p>
  94. <h4>Next topic</h4>
  95. <p class="topless"><a href="celery.conf.html"
  96. title="next chapter">Configuration - celery.conf</a></p>
  97. <h3>This Page</h3>
  98. <ul class="this-page-menu">
  99. <li><a href="../sources/reference/celery.backends.tyrant.txt"
  100. rel="nofollow">Show Source</a></li>
  101. </ul>
  102. <div id="searchbox" style="display: none">
  103. <h3>Quick search</h3>
  104. <form class="search" action="../search.html" method="get">
  105. <input type="text" name="q" size="18" />
  106. <input type="submit" value="Go" />
  107. <input type="hidden" name="check_keywords" value="yes" />
  108. <input type="hidden" name="area" value="default" />
  109. </form>
  110. <p class="searchtip" style="font-size: 90%">
  111. Enter search terms or a module, class or function name.
  112. </p>
  113. </div>
  114. <script type="text/javascript">$('#searchbox').show(0);</script>
  115. </div>
  116. </div>
  117. <div class="clearer"></div>
  118. </div>
  119. <div class="related">
  120. <h3>Navigation</h3>
  121. <ul>
  122. <li class="right" style="margin-right: 10px">
  123. <a href="../genindex.html" title="General Index"
  124. >index</a></li>
  125. <li class="right" >
  126. <a href="../modindex.html" title="Global Module Index"
  127. >modules</a> |</li>
  128. <li class="right" >
  129. <a href="celery.conf.html" title="Configuration - celery.conf"
  130. >next</a> |</li>
  131. <li class="right" >
  132. <a href="celery.backends.cache.html" title="Backend: Cache - celery.backends.cache"
  133. >previous</a> |</li>
  134. <li><a href="../index.html">Celery v0.1.15 documentation</a> &raquo;</li>
  135. </ul>
  136. </div>
  137. <div class="footer">
  138. &copy; Copyright 2009, Ask Solem.
  139. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.1.
  140. </div>
  141. </body>
  142. </html>