OXYGENHUB
# cd46e56b1709 oxygenhub / templates / admin_runner_settings.html
2.2 KiB · HTML · last changed Admin runner settings: job time limits; each job runs under its own 1 month ago source blame history raw
1
{% extends "base.html" %}
2
{% block title %}Runner settings · Administration{% endblock %}
3
{% block content %}
4
<div class="head"><h1>Runners <small><a href="/admin">Administration</a></small></h1></div>
5
<div class="bar"><span class="modes"><a href="/admin/runners">runners</a><a href="/admin/runners/settings" class="on">settings</a></span></div>
6
{% if let Some(n) = notice %}<p class="note">{{ n }}</p>{% endif %}
7
{% if let Some(e) = error %}<p class="error">{{ e }}</p>{% endif %}
8
<form class="card wide" method="post" action="/admin/runners/settings">
9
  <input type="hidden" name="_csrf" value="{{ shell.csrf }}">
10
  <h2>Job time limits</h2>
11
  <p class="small mute">A pipeline sets a job's limit with <code>timeout "90m"</code> on the job or its sandbox. These apply to every repository on this hub, to jobs claimed from now on.</p>
12
  <label for="default_minutes">Default, for a job whose pipeline sets none (minutes)</label>
13
  <input type="number" id="default_minutes" name="default_minutes" min="1" max="1440" value="{{ default_m }}" required>
14
  <p class="small mute">hub.toml says {{ file_default_m }}; this page's value wins once saved.</p>
15
  <label for="max_minutes">Maximum a pipeline may ask for (minutes)</label>
16
  <input type="number" id="max_minutes" name="max_minutes" min="1" max="1440" value="{{ max_m }}" required>
17
  <p class="small mute">A longer <code>timeout</code> is cut to this.</p>
18
  <label for="grace_minutes">Lost after (minutes past a job's limit)</label>
19
  <input type="number" id="grace_minutes" name="grace_minutes" min="1" max="120" value="{{ grace_m }}" required>
20
  <p class="small mute">A runner stops a job at its limit and says so at once; a job still running this long after is one its runner no longer reports, and the hub ends it.</p>
21
  <button type="submit">Save</button>
22
</form>
23
<section class="panel">
24
  <h2>Repositories that run Flow</h2>
25
  {% if flow_repos.is_empty() %}<p class="mute">None listed in hub.toml; each repository's administrator switches Flow on in its Settings.</p>{% else %}<ul class="plain">{% for r in flow_repos %}<li><code>{{ r }}</code></li>{% endfor %}</ul><p class="small mute">From hub.toml's <code>[flow] repos</code>; others are switched on in each repository's Settings.</p>{% endif %}
26
</section>
27
{% endblock %}