celery.messaging.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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>Messaging - celery.messaging &mdash; Celery v0.7.0 (unstable) 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.7.0 (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.7.0 (unstable) documentation" href="../index.html" />
  21. <link rel="up" title="Module API Reference" href="index.html" />
  22. <link rel="next" title="Multiprocessing Worker - celery.worker" href="celery.worker.html" />
  23. <link rel="prev" title="Statistics and Monitoring - celery.monitoring" href="celery.monitoring.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.worker.html" title="Multiprocessing Worker - celery.worker"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="celery.monitoring.html" title="Statistics and Monitoring - celery.monitoring"
  40. accesskey="P">previous</a> |</li>
  41. <li><a href="../index.html">Celery v0.7.0 (unstable) 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.messaging">
  50. <h1>Messaging - celery.messaging<a class="headerlink" href="#module-celery.messaging" title="Permalink to this headline">¶</a></h1>
  51. <p>Sending and Receiving Messages</p>
  52. <dl class="class">
  53. <dt id="celery.messaging.TaskConsumer">
  54. <em class="property">
  55. class </em><tt class="descclassname">celery.messaging.</tt><tt class="descname">TaskConsumer</tt><big>(</big><em>connection</em>, <em>queue=None</em>, <em>exchange=None</em>, <em>routing_key=None</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.messaging.TaskConsumer" title="Permalink to this definition">¶</a></dt>
  56. <dd><p>The AMQP Task Consumer class.</p>
  57. <dl class="method">
  58. <dt id="celery.messaging.TaskConsumer.decoder">
  59. <tt class="descname">decoder</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.messaging.TaskConsumer.decoder" title="Permalink to this definition">¶</a></dt>
  60. <dd>loads(string) &#8211; Load a pickle from the given string</dd></dl>
  61. </dd></dl>
  62. <dl class="class">
  63. <dt id="celery.messaging.TaskPublisher">
  64. <em class="property">
  65. class </em><tt class="descclassname">celery.messaging.</tt><tt class="descname">TaskPublisher</tt><big>(</big><em>connection</em>, <em>exchange=None</em>, <em>routing_key=None</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.messaging.TaskPublisher" title="Permalink to this definition">¶</a></dt>
  66. <dd><p>The AMQP Task Publisher class.</p>
  67. <dl class="method">
  68. <dt id="celery.messaging.TaskPublisher.delay_task">
  69. <tt class="descname">delay_task</tt><big>(</big><em>task_name</em>, <em>task_args</em>, <em>task_kwargs</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.messaging.TaskPublisher.delay_task" title="Permalink to this definition">¶</a></dt>
  70. <dd>Delay task for execution by the celery nodes.</dd></dl>
  71. <dl class="method">
  72. <dt id="celery.messaging.TaskPublisher.delay_task_in_set">
  73. <tt class="descname">delay_task_in_set</tt><big>(</big><em>taskset_id</em>, <em>task_name</em>, <em>task_args</em>, <em>task_kwargs</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#celery.messaging.TaskPublisher.delay_task_in_set" title="Permalink to this definition">¶</a></dt>
  74. <dd>Delay a task which part of a task set.</dd></dl>
  75. <dl class="method">
  76. <dt id="celery.messaging.TaskPublisher.encoder">
  77. <tt class="descname">encoder</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.messaging.TaskPublisher.encoder" title="Permalink to this definition">¶</a></dt>
  78. <dd><p>dumps(obj, protocol=0) &#8211; Return a string containing an object in pickle format.</p>
  79. <p>See the Pickler docstring for the meaning of optional argument proto.</p>
  80. </dd></dl>
  81. </dd></dl>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="sphinxsidebar">
  87. <div class="sphinxsidebarwrapper">
  88. <h4>Previous topic</h4>
  89. <p class="topless"><a href="celery.monitoring.html"
  90. title="previous chapter">Statistics and Monitoring - celery.monitoring</a></p>
  91. <h4>Next topic</h4>
  92. <p class="topless"><a href="celery.worker.html"
  93. title="next chapter">Multiprocessing Worker - celery.worker</a></p>
  94. <h3>This Page</h3>
  95. <ul class="this-page-menu">
  96. <li><a href="../sources/reference/celery.messaging.txt"
  97. rel="nofollow">Show Source</a></li>
  98. </ul>
  99. <div id="searchbox" style="display: none">
  100. <h3>Quick search</h3>
  101. <form class="search" action="../search.html" method="get">
  102. <input type="text" name="q" size="18" />
  103. <input type="submit" value="Go" />
  104. <input type="hidden" name="check_keywords" value="yes" />
  105. <input type="hidden" name="area" value="default" />
  106. </form>
  107. <p class="searchtip" style="font-size: 90%">
  108. Enter search terms or a module, class or function name.
  109. </p>
  110. </div>
  111. <script type="text/javascript">$('#searchbox').show(0);</script>
  112. </div>
  113. </div>
  114. <div class="clearer"></div>
  115. </div>
  116. <div class="related">
  117. <h3>Navigation</h3>
  118. <ul>
  119. <li class="right" style="margin-right: 10px">
  120. <a href="../genindex.html" title="General Index"
  121. >index</a></li>
  122. <li class="right" >
  123. <a href="../modindex.html" title="Global Module Index"
  124. >modules</a> |</li>
  125. <li class="right" >
  126. <a href="celery.worker.html" title="Multiprocessing Worker - celery.worker"
  127. >next</a> |</li>
  128. <li class="right" >
  129. <a href="celery.monitoring.html" title="Statistics and Monitoring - celery.monitoring"
  130. >previous</a> |</li>
  131. <li><a href="../index.html">Celery v0.7.0 (unstable) documentation</a> &raquo;</li>
  132. <li><a href="index.html" >Module API Reference</a> &raquo;</li>
  133. </ul>
  134. </div>
  135. <div class="footer">
  136. &copy; Copyright 2009, Ask Solem.
  137. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.2.
  138. </div>
  139. </body>
  140. </html>