mirror of
https://github.com/nxshock/gron.git
synced 2025-07-02 00:23:35 +05:00
Add on error restart job options
This commit is contained in:
parent
62ed212e3c
commit
7d298e05be
8 changed files with 180 additions and 55 deletions
|
@ -207,9 +207,9 @@
|
|||
<form action="/start" method="get" id="form-{{.Name}}"></form>
|
||||
<button{{if gt .CurrentRunningCount 0}} class="runningbg" {{else}}{{if .LastError}} class="errorbg" {{end}}{{end}} type="submit" form="form-{{.Name}}" name="jobName" value="{{.Name}}" {{if gt .CurrentRunningCount 0}} disabled{{end}}>{{.Name}}</button>
|
||||
</td>
|
||||
<td class="smaller">{{.Description}}</td>
|
||||
<td class="smaller">{{.JobConfig.Description}}</td>
|
||||
<td class="nowrap" align="right">
|
||||
<pre>{{.Cron}}</pre>
|
||||
<pre>{{.JobConfig.Cron}}</pre>
|
||||
</td>
|
||||
<td class="nowrap">{{if gt .CurrentRunningCount 1}}<span class="red">running {{.CurrentRunningCount}} jobs</span>{{else}}{{if .CurrentRunningCount}}<span class="green">▶ running</span>{{else}}◼ inactive{{end}}{{end}}</td>
|
||||
<td>{{.LastStartTime}}</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue