celery.platform.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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>Platform Specific - celery.platform &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="Timers - celery.timer" href="celery.timer.html" />
  22. <link rel="prev" title="Messaging - celery.messaging" href="celery.messaging.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.timer.html" title="Timers - celery.timer"
  36. accesskey="N">next</a> |</li>
  37. <li class="right" >
  38. <a href="celery.messaging.html" title="Messaging - celery.messaging"
  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.platform">
  48. <h1>Platform Specific - celery.platform<a class="headerlink" href="#module-celery.platform" title="Permalink to this headline">¶</a></h1>
  49. <p>celery.platform</p>
  50. <dl class="class">
  51. <dt id="celery.platform.PIDFile">
  52. <em class="property">
  53. class </em><tt class="descclassname">celery.platform.</tt><tt class="descname">PIDFile</tt><big>(</big><em>pidfile</em><big>)</big><a class="headerlink" href="#celery.platform.PIDFile" title="Permalink to this definition">¶</a></dt>
  54. <dd><p>Manages a pid file.</p>
  55. <dl class="method">
  56. <dt id="celery.platform.PIDFile.check">
  57. <tt class="descname">check</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.platform.PIDFile.check" title="Permalink to this definition">¶</a></dt>
  58. <dd><p>Check the status of the pidfile.</p>
  59. <p>If the pidfile exists, and the process is not running, it will
  60. remove the stale pidfile and continue as normal. If the process
  61. <em>is</em> running, it will exit the program with an error message.</p>
  62. </dd></dl>
  63. <dl class="method">
  64. <dt id="celery.platform.PIDFile.get_pid">
  65. <tt class="descname">get_pid</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.platform.PIDFile.get_pid" title="Permalink to this definition">¶</a></dt>
  66. <dd>Get the process id stored in the pidfile.</dd></dl>
  67. <dl class="method">
  68. <dt id="celery.platform.PIDFile.remove">
  69. <tt class="descname">remove</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.platform.PIDFile.remove" title="Permalink to this definition">¶</a></dt>
  70. <dd>Remove the pidfile.</dd></dl>
  71. <dl class="method">
  72. <dt id="celery.platform.PIDFile.write">
  73. <tt class="descname">write</tt><big>(</big><em>pid=None</em><big>)</big><a class="headerlink" href="#celery.platform.PIDFile.write" title="Permalink to this definition">¶</a></dt>
  74. <dd><p>Write a pidfile.</p>
  75. <p>If <tt class="docutils literal"><span class="pre">pid</span></tt> is not specified the pid of the current process
  76. will be used.</p>
  77. </dd></dl>
  78. </dd></dl>
  79. <dl class="function">
  80. <dt id="celery.platform.daemonize">
  81. <tt class="descclassname">celery.platform.</tt><tt class="descname">daemonize</tt><big>(</big><em>pidfile</em><big>)</big><a class="headerlink" href="#celery.platform.daemonize" title="Permalink to this definition">¶</a></dt>
  82. <dd>Detach a process from the controlling terminal and run it in the
  83. background as a daemon.</dd></dl>
  84. <dl class="function">
  85. <dt id="celery.platform.remove_pidfile">
  86. <tt class="descclassname">celery.platform.</tt><tt class="descname">remove_pidfile</tt><big>(</big><em>pidfile</em><big>)</big><a class="headerlink" href="#celery.platform.remove_pidfile" title="Permalink to this definition">¶</a></dt>
  87. <dd>Remove the pidfile.</dd></dl>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="sphinxsidebar">
  93. <div class="sphinxsidebarwrapper">
  94. <h4>Previous topic</h4>
  95. <p class="topless"><a href="celery.messaging.html"
  96. title="previous chapter">Messaging - celery.messaging</a></p>
  97. <h4>Next topic</h4>
  98. <p class="topless"><a href="celery.timer.html"
  99. title="next chapter">Timers - celery.timer</a></p>
  100. <h3>This Page</h3>
  101. <ul class="this-page-menu">
  102. <li><a href="../sources/reference/celery.platform.txt"
  103. rel="nofollow">Show Source</a></li>
  104. </ul>
  105. <div id="searchbox" style="display: none">
  106. <h3>Quick search</h3>
  107. <form class="search" action="../search.html" method="get">
  108. <input type="text" name="q" size="18" />
  109. <input type="submit" value="Go" />
  110. <input type="hidden" name="check_keywords" value="yes" />
  111. <input type="hidden" name="area" value="default" />
  112. </form>
  113. <p class="searchtip" style="font-size: 90%">
  114. Enter search terms or a module, class or function name.
  115. </p>
  116. </div>
  117. <script type="text/javascript">$('#searchbox').show(0);</script>
  118. </div>
  119. </div>
  120. <div class="clearer"></div>
  121. </div>
  122. <div class="related">
  123. <h3>Navigation</h3>
  124. <ul>
  125. <li class="right" style="margin-right: 10px">
  126. <a href="../genindex.html" title="General Index"
  127. >index</a></li>
  128. <li class="right" >
  129. <a href="../modindex.html" title="Global Module Index"
  130. >modules</a> |</li>
  131. <li class="right" >
  132. <a href="celery.timer.html" title="Timers - celery.timer"
  133. >next</a> |</li>
  134. <li class="right" >
  135. <a href="celery.messaging.html" title="Messaging - celery.messaging"
  136. >previous</a> |</li>
  137. <li><a href="../index.html">Celery v0.1.15 documentation</a> &raquo;</li>
  138. </ul>
  139. </div>
  140. <div class="footer">
  141. &copy; Copyright 2009, Ask Solem.
  142. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.1.
  143. </div>
  144. </body>
  145. </html>