| | | |
Offset 104, 15 lines modified | Offset 104, 15 lines modified |
104 | <code·class="descname">state</code><a·class="headerlink"·href="#celery.app.trace.TraceInfo.state"·title="Permalink·to·this·definition">¶</a></dt> | 104 | <code·class="descname">state</code><a·class="headerlink"·href="#celery.app.trace.TraceInfo.state"·title="Permalink·to·this·definition">¶</a></dt> |
105 | <dd></dd></dl> | 105 | <dd></dd></dl> |
| |
106 | </dd></dl> | 106 | </dd></dl> |
| |
107 | <dl·class="function"> | 107 | <dl·class="function"> |
108 | <dt·id="celery.app.trace.build_tracer"> | 108 | <dt·id="celery.app.trace.build_tracer"> |
109 | <code·class="descclassname">celery.app.trace.</code><code·class="descname">build_tracer</code><span·class="sig-paren">(</span><em>name</em>,·<em>task</em>,·<em>loader=None</em>,·<em>hostname=None</em>,·<em>store_errors=True</em>,·<em>Info=<class·'celery.app.trace.TraceInfo'></em>,·<em>eager=False</em>,·<em>propagate=False</em>,·<em>app=None</em>,·<em>monotonic=<built-in·function·monotonic></em>,·<em>trace_ok_t=<class·'celery.app.trace.trace_ok_t'></em>,·<em>IGNORE_STATES=frozenset({'REJECTED'</em>,·<em>'IGNORED'</em>,·<em>'RETRY'})</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../../_modules/celery/app/trace.html#build_tracer"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#celery.app.trace.build_tracer"·title="Permalink·to·this·definition">¶</a></dt> | 109 | <code·class="descclassname">celery.app.trace.</code><code·class="descname">build_tracer</code><span·class="sig-paren">(</span><em>name</em>,·<em>task</em>,·<em>loader=None</em>,·<em>hostname=None</em>,·<em>store_errors=True</em>,·<em>Info=<class·'celery.app.trace.TraceInfo'></em>,·<em>eager=False</em>,·<em>propagate=False</em>,·<em>app=None</em>,·<em>monotonic=<built-in·function·monotonic></em>,·<em>trace_ok_t=<class·'celery.app.trace.trace_ok_t'></em>,·<em>IGNORE_STATES=frozenset({'IGNORED'</em>,·<em>'RETRY'</em>,·<em>'REJECTED'})</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../../_modules/celery/app/trace.html#build_tracer"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#celery.app.trace.build_tracer"·title="Permalink·to·this·definition">¶</a></dt> |
110 | <dd><p>Return·a·function·that·traces·task·execution.</p> | 110 | <dd><p>Return·a·function·that·traces·task·execution.</p> |
111 | <p>Catches·all·exceptions·and·updates·result·backend·with·the | 111 | <p>Catches·all·exceptions·and·updates·result·backend·with·the |
112 | state·and·result.</p> | 112 | state·and·result.</p> |
113 | <p>If·the·call·was·successful,·it·saves·the·result·to·the·task·result | 113 | <p>If·the·call·was·successful,·it·saves·the·result·to·the·task·result |
114 | backend,·and·sets·the·task·status·to·<cite>“SUCCESS”</cite>.</p> | 114 | backend,·and·sets·the·task·status·to·<cite>“SUCCESS”</cite>.</p> |
115 | <p>If·the·call·raises·<a·class="reference·internal"·href="../../reference/celery.exceptions.html#celery.exceptions.Retry"·title="celery.exceptions.Retry"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Retry</span></code></a>,·it·extracts | 115 | <p>If·the·call·raises·<a·class="reference·internal"·href="../../reference/celery.exceptions.html#celery.exceptions.Retry"·title="celery.exceptions.Retry"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Retry</span></code></a>,·it·extracts |
116 | the·original·exception,·uses·that·as·the·result·and·sets·the·task·state | 116 | the·original·exception,·uses·that·as·the·result·and·sets·the·task·state |