mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-28 14:40:46 +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 {
|
||||
if !t.Exists() {
|
||||
log.Infof("task no longer exists: %v", id)
|
||||
delete(s.tasks, id)
|
||||
continue
|
||||
}
|
||||
log.Infof("task (%s) percentage done: %d%%", t.Name(), t.Progress())
|
||||
|
||||
Reference in New Issue
Block a user