1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 14:36:47 +00:00

report the last ended time (updated whether successful or not) of jobs

这个提交包含在:
Yuxiang Zhang
2018-05-29 21:16:28 +08:00
父节点 6bca9d2cd5
当前提交 95bb4bbd5e
共有 6 个文件被更改,包括 79 次插入2 次删除

查看文件

@@ -242,6 +242,11 @@ func (s *Manager) updateJobOfWorker(c *gin.Context) {
} else {
status.LastUpdate = curStatus.LastUpdate
}
if status.Status == Success || status.Status == Failed {
status.LastEnded = time.Now()
} else {
status.LastEnded = curStatus.LastEnded
}
// Only message with meaningful size updates the mirror size
if len(curStatus.Size) > 0 && curStatus.Size != "unknown" {