|
@@ -0,0 +1,156 @@
|
|
|
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
+
|
|
|
+<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
+ <head>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
+
|
|
|
+ <title>Loader Base Classes - celery.loaders.base — Celery v0.6.0 (stable) documentation</title>
|
|
|
+ <link rel="stylesheet" href="../static/nature.css" type="text/css" />
|
|
|
+ <link rel="stylesheet" href="../static/pygments.css" type="text/css" />
|
|
|
+ <script type="text/javascript">
|
|
|
+ var DOCUMENTATION_OPTIONS = {
|
|
|
+ URL_ROOT: '../',
|
|
|
+ VERSION: '0.6.0 (stable)',
|
|
|
+ COLLAPSE_MODINDEX: false,
|
|
|
+ FILE_SUFFIX: '.html',
|
|
|
+ HAS_SOURCE: true
|
|
|
+ };
|
|
|
+ </script>
|
|
|
+ <script type="text/javascript" src="../static/jquery.js"></script>
|
|
|
+ <script type="text/javascript" src="../static/doctools.js"></script>
|
|
|
+ <link rel="top" title="Celery v0.6.0 (stable) documentation" href="../index.html" />
|
|
|
+ <link rel="up" title="Module API Reference" href="index.html" />
|
|
|
+ <link rel="next" title="Default Loader - celery.loaders.default" href="celery.loaders.default.html" />
|
|
|
+ <link rel="prev" title="Loaders - celery.loaders" href="celery.loaders.html" />
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div class="related">
|
|
|
+ <h3>Navigation</h3>
|
|
|
+ <ul>
|
|
|
+ <li class="right" style="margin-right: 10px">
|
|
|
+ <a href="../genindex.html" title="General Index"
|
|
|
+ accesskey="I">index</a></li>
|
|
|
+ <li class="right" >
|
|
|
+ <a href="../modindex.html" title="Global Module Index"
|
|
|
+ accesskey="M">modules</a> |</li>
|
|
|
+ <li class="right" >
|
|
|
+ <a href="celery.loaders.default.html" title="Default Loader - celery.loaders.default"
|
|
|
+ accesskey="N">next</a> |</li>
|
|
|
+ <li class="right" >
|
|
|
+ <a href="celery.loaders.html" title="Loaders - celery.loaders"
|
|
|
+ accesskey="P">previous</a> |</li>
|
|
|
+ <li><a href="../index.html">Celery v0.6.0 (stable) documentation</a> »</li>
|
|
|
+ <li><a href="index.html" accesskey="U">Module API Reference</a> »</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="document">
|
|
|
+ <div class="documentwrapper">
|
|
|
+ <div class="bodywrapper">
|
|
|
+ <div class="body">
|
|
|
+
|
|
|
+ <div class="section" id="module-celery.loaders.base">
|
|
|
+<h1>Loader Base Classes - celery.loaders.base<a class="headerlink" href="#module-celery.loaders.base" title="Permalink to this headline">¶</a></h1>
|
|
|
+<dl class="class">
|
|
|
+<dt id="celery.loaders.base.BaseLoader">
|
|
|
+<em class="property">
|
|
|
+class </em><tt class="descclassname">celery.loaders.base.</tt><tt class="descname">BaseLoader</tt><a class="headerlink" href="#celery.loaders.base.BaseLoader" title="Permalink to this definition">¶</a></dt>
|
|
|
+<dd><p>The base class for loaders.</p>
|
|
|
+<p>Loaders handles to following things:</p>
|
|
|
+<ul>
|
|
|
+<li><p class="first">Reading celery client/worker configurations.</p>
|
|
|
+</li>
|
|
|
+<li><dl class="first docutils">
|
|
|
+<dt>What happens when a task starts?</dt>
|
|
|
+<dd><p class="first last">See <a title="celery.loaders.base.BaseLoader.on_task_init" class="reference internal" href="#celery.loaders.base.BaseLoader.on_task_init"><tt class="xref docutils literal"><span class="pre">on_task_init()</span></tt></a>.</p>
|
|
|
+</dd>
|
|
|
+</dl>
|
|
|
+</li>
|
|
|
+<li><dl class="first docutils">
|
|
|
+<dt>What happens when the worker starts?</dt>
|
|
|
+<dd><p class="first last">See <a title="celery.loaders.base.BaseLoader.on_worker_init" class="reference internal" href="#celery.loaders.base.BaseLoader.on_worker_init"><tt class="xref docutils literal"><span class="pre">on_worker_init()</span></tt></a>.</p>
|
|
|
+</dd>
|
|
|
+</dl>
|
|
|
+</li>
|
|
|
+<li><p class="first">What modules are imported to find tasks?</p>
|
|
|
+</li>
|
|
|
+</ul>
|
|
|
+<dl class="attribute">
|
|
|
+<dt id="celery.loaders.base.BaseLoader.conf">
|
|
|
+<tt class="descname">conf</tt><a class="headerlink" href="#celery.loaders.base.BaseLoader.conf" title="Permalink to this definition">¶</a></dt>
|
|
|
+<dd>Loader configuration.</dd></dl>
|
|
|
+
|
|
|
+<dl class="method">
|
|
|
+<dt id="celery.loaders.base.BaseLoader.on_task_init">
|
|
|
+<tt class="descname">on_task_init</tt><big>(</big><em>task_id</em>, <em>task</em><big>)</big><a class="headerlink" href="#celery.loaders.base.BaseLoader.on_task_init" title="Permalink to this definition">¶</a></dt>
|
|
|
+<dd>This method is called before a task is executed.</dd></dl>
|
|
|
+
|
|
|
+<dl class="method">
|
|
|
+<dt id="celery.loaders.base.BaseLoader.on_worker_init">
|
|
|
+<tt class="descname">on_worker_init</tt><big>(</big><big>)</big><a class="headerlink" href="#celery.loaders.base.BaseLoader.on_worker_init" title="Permalink to this definition">¶</a></dt>
|
|
|
+<dd>This method is called when the worker (<tt class="docutils literal"><span class="pre">celeryd</span></tt>) starts.</dd></dl>
|
|
|
+
|
|
|
+</dd></dl>
|
|
|
+
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="sphinxsidebar">
|
|
|
+ <div class="sphinxsidebarwrapper">
|
|
|
+ <h4>Previous topic</h4>
|
|
|
+ <p class="topless"><a href="celery.loaders.html"
|
|
|
+ title="previous chapter">Loaders - celery.loaders</a></p>
|
|
|
+ <h4>Next topic</h4>
|
|
|
+ <p class="topless"><a href="celery.loaders.default.html"
|
|
|
+ title="next chapter">Default Loader - celery.loaders.default</a></p>
|
|
|
+ <h3>This Page</h3>
|
|
|
+ <ul class="this-page-menu">
|
|
|
+ <li><a href="../sources/reference/celery.loaders.base.txt"
|
|
|
+ rel="nofollow">Show Source</a></li>
|
|
|
+ </ul>
|
|
|
+ <div id="searchbox" style="display: none">
|
|
|
+ <h3>Quick search</h3>
|
|
|
+ <form class="search" action="../search.html" method="get">
|
|
|
+ <input type="text" name="q" size="18" />
|
|
|
+ <input type="submit" value="Go" />
|
|
|
+ <input type="hidden" name="check_keywords" value="yes" />
|
|
|
+ <input type="hidden" name="area" value="default" />
|
|
|
+ </form>
|
|
|
+ <p class="searchtip" style="font-size: 90%">
|
|
|
+ Enter search terms or a module, class or function name.
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <script type="text/javascript">$('#searchbox').show(0);</script>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="clearer"></div>
|
|
|
+ </div>
|
|
|
+ <div class="related">
|
|
|
+ <h3>Navigation</h3>
|
|
|
+ <ul>
|
|
|
+ <li class="right" style="margin-right: 10px">
|
|
|
+ <a href="../genindex.html" title="General Index"
|
|
|
+ >index</a></li>
|
|
|
+ <li class="right" >
|
|
|
+ <a href="../modindex.html" title="Global Module Index"
|
|
|
+ >modules</a> |</li>
|
|
|
+ <li class="right" >
|
|
|
+ <a href="celery.loaders.default.html" title="Default Loader - celery.loaders.default"
|
|
|
+ >next</a> |</li>
|
|
|
+ <li class="right" >
|
|
|
+ <a href="celery.loaders.html" title="Loaders - celery.loaders"
|
|
|
+ >previous</a> |</li>
|
|
|
+ <li><a href="../index.html">Celery v0.6.0 (stable) documentation</a> »</li>
|
|
|
+ <li><a href="index.html" >Module API Reference</a> »</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="footer">
|
|
|
+ © Copyright 2009, Ask Solem.
|
|
|
+ Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.2.
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+</html>
|