Skip to content

Commit

Permalink
deploy: 79284a3
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn committed Apr 11, 2024
1 parent ad67ff5 commit 29e121d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions _modules/grandchallenge/components/models.html
Original file line number Diff line number Diff line change
Expand Up @@ -1584,6 +1584,9 @@ <h1>Source code for grandchallenge.components.models</h1><div class="highlight">
<span class="n">stderr</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">TextField</span><span class="p">(</span><span class="n">default</span><span class="o">=</span><span class="s2">&quot;&quot;</span><span class="p">)</span>
<span class="n">runtime_metrics</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">JSONField</span><span class="p">(</span><span class="n">default</span><span class="o">=</span><span class="nb">dict</span><span class="p">,</span> <span class="n">editable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="n">error_message</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">CharField</span><span class="p">(</span><span class="n">max_length</span><span class="o">=</span><span class="mi">1024</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="s2">&quot;&quot;</span><span class="p">)</span>
<span class="n">detailed_error_message</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">JSONField</span><span class="p">(</span>
<span class="n">blank</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">null</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="kc">None</span>
<span class="p">)</span>
<span class="n">started_at</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">DateTimeField</span><span class="p">(</span><span class="n">null</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">completed_at</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">DateTimeField</span><span class="p">(</span><span class="n">null</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">compute_cost_euro_millicents</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">PositiveIntegerField</span><span class="p">(</span>
Expand Down Expand Up @@ -1642,6 +1645,7 @@ <h1>Source code for grandchallenge.components.models</h1><div class="highlight">
<span class="n">stdout</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
<span class="n">stderr</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
<span class="n">error_message</span><span class="o">=</span><span class="s2">&quot;&quot;</span><span class="p">,</span>
<span class="n">detailed_error_message</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">duration</span><span class="p">:</span> <span class="n">timedelta</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">compute_cost_euro_millicents</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">runtime_metrics</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
Expand All @@ -1657,6 +1661,9 @@ <h1>Source code for grandchallenge.components.models</h1><div class="highlight">
<span class="k">if</span> <span class="n">error_message</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">error_message</span> <span class="o">=</span> <span class="n">error_message</span><span class="p">[:</span><span class="mi">1024</span><span class="p">]</span>

<span class="k">if</span> <span class="n">detailed_error_message</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">detailed_error_message</span> <span class="o">=</span> <span class="n">detailed_error_message</span>

<span class="k">if</span> <span class="p">(</span>
<span class="n">status</span> <span class="ow">in</span> <span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">STARTED</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">EXECUTING</span><span class="p">]</span>
<span class="ow">and</span> <span class="bp">self</span><span class="o">.</span><span class="n">started_at</span> <span class="ow">is</span> <span class="kc">None</span>
Expand Down
1 change: 1 addition & 0 deletions components.html
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@
<li><p><strong>stderr</strong> (<a class="reference external" href="https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.TextField" title="(in Django v5.0)"><em>TextField</em></a>) – Stderr</p></li>
<li><p><strong>runtime_metrics</strong> (<a class="reference external" href="https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.JSONField" title="(in Django v5.0)"><em>JSONField</em></a>) – Runtime metrics</p></li>
<li><p><strong>error_message</strong> (<a class="reference external" href="https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.CharField" title="(in Django v5.0)"><em>CharField</em></a>) – Error message</p></li>
<li><p><strong>detailed_error_message</strong> (<a class="reference external" href="https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.JSONField" title="(in Django v5.0)"><em>JSONField</em></a>) – Detailed error message</p></li>
<li><p><strong>started_at</strong> (<a class="reference external" href="https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.DateTimeField" title="(in Django v5.0)"><em>DateTimeField</em></a>) – Started at</p></li>
<li><p><strong>completed_at</strong> (<a class="reference external" href="https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.DateTimeField" title="(in Django v5.0)"><em>DateTimeField</em></a>) – Completed at</p></li>
<li><p><strong>compute_cost_euro_millicents</strong> (<a class="reference external" href="https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.PositiveIntegerField" title="(in Django v5.0)"><em>PositiveIntegerField</em></a>) – Compute cost euro millicents. The total compute cost for this job in Euro Cents, including Tax</p></li>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 29e121d

Please sign in to comment.