123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <!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>Django Models - celery.models — Celery v0.7.0 (unstable) 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.7.0 (unstable)',
- 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.7.0 (unstable) documentation" href="../index.html" />
- <link rel="up" title="Module API Reference" href="index.html" />
- <link rel="next" title="Django Fields - celery.fields" href="celery.fields.html" />
- <link rel="prev" title="Django Model Managers - celery.managers" href="celery.managers.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.fields.html" title="Django Fields - celery.fields"
- accesskey="N">next</a> |</li>
- <li class="right" >
- <a href="celery.managers.html" title="Django Model Managers - celery.managers"
- accesskey="P">previous</a> |</li>
- <li><a href="../index.html">Celery v0.7.0 (unstable) 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="django-models-celery-models">
- <h1>Django Models - celery.models<a class="headerlink" href="#django-models-celery-models" title="Permalink to this headline">¶</a></h1>
- <dl class="data">
- <dt id="TASK_STATUS_PENDING">
- <tt class="descname">TASK_STATUS_PENDING</tt><a class="headerlink" href="#TASK_STATUS_PENDING" title="Permalink to this definition">¶</a></dt>
- <dd>The string status of a pending task.</dd></dl>
- <dl class="data">
- <dt id="TASK_STATUS_RETRY">
- <tt class="descname">TASK_STATUS_RETRY</tt><a class="headerlink" href="#TASK_STATUS_RETRY" title="Permalink to this definition">¶</a></dt>
- <dd>The string status of a task which is to be retried.</dd></dl>
- <dl class="data">
- <dt id="TASK_STATUS_FAILURE">
- <tt class="descname">TASK_STATUS_FAILURE</tt><a class="headerlink" href="#TASK_STATUS_FAILURE" title="Permalink to this definition">¶</a></dt>
- <dd>The string status of a failed task.</dd></dl>
- <dl class="data">
- <dt id="TASK_STATUS_DONE">
- <tt class="descname">TASK_STATUS_DONE</tt><a class="headerlink" href="#TASK_STATUS_DONE" title="Permalink to this definition">¶</a></dt>
- <dd>The string status of a task that was successfully executed.</dd></dl>
- <dl class="data">
- <dt id="TASK_STATUSES">
- <tt class="descname">TASK_STATUSES</tt><a class="headerlink" href="#TASK_STATUSES" title="Permalink to this definition">¶</a></dt>
- <dd>List of possible task statuses.</dd></dl>
- <dl class="data">
- <dt id="TASK_STATUSES_CHOICES">
- <tt class="descname">TASK_STATUSES_CHOICES</tt><a class="headerlink" href="#TASK_STATUSES_CHOICES" title="Permalink to this definition">¶</a></dt>
- <dd>Django choice tuple of possible task statuses, for usage in model/form
- fields <tt class="docutils literal"><span class="pre">choices</span></tt> argument.</dd></dl>
- <dl class="class">
- <dt id="TaskMeta">
- <em class="property">
- class </em><tt class="descname">TaskMeta</tt><a class="headerlink" href="#TaskMeta" title="Permalink to this definition">¶</a></dt>
- <dd><p>Model for storing the result and status of a task.</p>
- <p><em>Note</em> Only used if you’re running the <tt class="docutils literal"><span class="pre">database</span></tt> backend.</p>
- <dl class="attribute">
- <dt id="TaskMeta.task_id">
- <tt class="descname">task_id</tt><a class="headerlink" href="#TaskMeta.task_id" title="Permalink to this definition">¶</a></dt>
- <dd>The unique task id.</dd></dl>
- <dl class="attribute">
- <dt id="TaskMeta.status">
- <tt class="descname">status</tt><a class="headerlink" href="#TaskMeta.status" title="Permalink to this definition">¶</a></dt>
- <dd>The current status for this task.</dd></dl>
- <dl class="attribute">
- <dt id="TaskMeta.result">
- <tt class="descname">result</tt><a class="headerlink" href="#TaskMeta.result" title="Permalink to this definition">¶</a></dt>
- <dd>The result after successful/failed execution. If the task failed,
- this contains the execption it raised.</dd></dl>
- <dl class="attribute">
- <dt id="TaskMeta.date_done">
- <tt class="descname">date_done</tt><a class="headerlink" href="#TaskMeta.date_done" title="Permalink to this definition">¶</a></dt>
- <dd>The date this task changed status.</dd></dl>
- </dd></dl>
- <dl class="class">
- <dt id="PeriodicTaskMeta">
- <em class="property">
- class </em><tt class="descname">PeriodicTaskMeta</tt><a class="headerlink" href="#PeriodicTaskMeta" title="Permalink to this definition">¶</a></dt>
- <dd><p>Metadata model for periodic tasks.</p>
- <dl class="attribute">
- <dt id="PeriodicTaskMeta.name">
- <tt class="descname">name</tt><a class="headerlink" href="#PeriodicTaskMeta.name" title="Permalink to this definition">¶</a></dt>
- <dd>The name of this task, as registered in the task registry.</dd></dl>
- <dl class="attribute">
- <dt id="PeriodicTaskMeta.last_run_at">
- <tt class="descname">last_run_at</tt><a class="headerlink" href="#PeriodicTaskMeta.last_run_at" title="Permalink to this definition">¶</a></dt>
- <dd>The date this periodic task was last run. Used to find out
- when it should be run next.</dd></dl>
- <dl class="attribute">
- <dt id="PeriodicTaskMeta.total_run_count">
- <tt class="descname">total_run_count</tt><a class="headerlink" href="#PeriodicTaskMeta.total_run_count" title="Permalink to this definition">¶</a></dt>
- <dd>The number of times this periodic task has been run.</dd></dl>
- <dl class="attribute">
- <dt id="PeriodicTaskMeta.task">
- <tt class="descname">task</tt><a class="headerlink" href="#PeriodicTaskMeta.task" title="Permalink to this definition">¶</a></dt>
- <dd>The class/function for this task.</dd></dl>
- <dl class="method">
- <dt id="PeriodicTaskMeta.delay">
- <tt class="descname">delay</tt><big>(</big><big>)</big><a class="headerlink" href="#PeriodicTaskMeta.delay" title="Permalink to this definition">¶</a></dt>
- <dt>
- <tt class="descname">Delay the execution of a periodic task, and increment its total</tt></dt>
- <dt>
- <tt class="descname">run count.</tt></dt>
- <dd></dd></dl>
- </dd></dl>
- </div>
- </div>
- </div>
- </div>
- <div class="sphinxsidebar">
- <div class="sphinxsidebarwrapper">
- <h4>Previous topic</h4>
- <p class="topless"><a href="celery.managers.html"
- title="previous chapter">Django Model Managers - celery.managers</a></p>
- <h4>Next topic</h4>
- <p class="topless"><a href="celery.fields.html"
- title="next chapter">Django Fields - celery.fields</a></p>
- <h3>This Page</h3>
- <ul class="this-page-menu">
- <li><a href="../sources/reference/celery.models.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.fields.html" title="Django Fields - celery.fields"
- >next</a> |</li>
- <li class="right" >
- <a href="celery.managers.html" title="Django Model Managers - celery.managers"
- >previous</a> |</li>
- <li><a href="../index.html">Celery v0.7.0 (unstable) 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>
|