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

fix(worker): fixed job status and control logic

这个提交包含在:
bigeagle
2016-04-28 22:46:53 +08:00
父节点 5f78722936
当前提交 292a24ba20
共有 6 个文件被更改,包括 174 次插入70 次删除

查看文件

@@ -44,6 +44,7 @@ func (q *scheduleQueue) Pop() *mirrorJob {
defer first.Close()
t := first.Key().(time.Time)
// logger.Debug("First job should run @%v", t)
if t.Before(time.Now()) {
job := first.Value().(*mirrorJob)
q.list.Delete(first.Key())