Add Parallel Tasks Settings
All checks were successful
/ release (push) Successful in 44s

This commit is contained in:
Samuel Lorch 2025-03-19 21:39:46 +01:00
parent 8c3ba7e883
commit 57969cc07d
7 changed files with 99 additions and 12 deletions

View file

@ -31,6 +31,24 @@
</select>
<input type="submit" value="Submit">
</form>
<h2>Set Queue Enable</h2>
<form method="POST" action= "/parallel_tasks">
<label for="worker">Worker:</label>
<select id="worker" name="worker">
<option value="all">All</option>
{{range $w := .Workers}}
<option value="{{$w.ID}}">{{$w.Name}}</option>
{{end}}
</select>
<label for="parallel_tasks">Parallel Tasks</label>
<select id="parallel_tasks" name="enable">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<input type="submit" value="Submit">
</form>
<h2>Workers</h2>
<div class="workers">
{{range $w := .Workers}}
@ -60,6 +78,22 @@
<td>
{{ $w.ConnectionChanged }}
</td>
</tr>
<tr>
<td>
QueueEnabled
</td>
<td>
{{ $w.QueueEnabled }}
</td>
</tr>
<tr>
<td>
ParallelTasks
</td>
<td>
{{ $w.ParallelTasks }}
</td>
</tr>
{{if $w.Connected}}
<tr>
@ -95,8 +129,8 @@
</td>
</tr>
{{end}}
</table>
</table>
</div>
{{end}}
</div>
{{template "tail"}}
{{template "tail"}}