mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-28 21:47:56 +08:00
chore: delete not exist tasks
This commit is contained in:
@@ -39,6 +39,7 @@ func (s *Server) checkTasks() {
|
|||||||
for id, t := range s.tasks {
|
for id, t := range s.tasks {
|
||||||
if !t.Exists() {
|
if !t.Exists() {
|
||||||
log.Infof("task no longer exists: %v", id)
|
log.Infof("task no longer exists: %v", id)
|
||||||
|
delete(s.tasks, id)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
log.Infof("task (%s) percentage done: %d%%", t.Name(), t.Progress())
|
log.Infof("task (%s) percentage done: %d%%", t.Name(), t.Progress())
|
||||||
|
|||||||
Reference in New Issue
Block a user