mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-28 20:56:11 +01:00
Backport #27584 by @wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
7ec7c733c7
commit
844ab9a441
|
@ -107,12 +107,11 @@ func ListTasks() TaskTable {
|
|||
prev = e.PreviousRun()
|
||||
}
|
||||
|
||||
task.lock.Lock()
|
||||
// If the manual run is after the cron run, use that instead.
|
||||
if prev.Before(task.LastRun) {
|
||||
prev = task.LastRun
|
||||
}
|
||||
|
||||
task.lock.Lock()
|
||||
tTable = append(tTable, &TaskTableRow{
|
||||
Name: task.Name,
|
||||
Spec: spec,
|
||||
|
|
Loading…
Reference in a new issue