misc update

This commit is contained in:
Simon Ding
2024-07-11 12:19:35 +08:00
parent 7c2ae26efe
commit a172ca0361
10 changed files with 473 additions and 199 deletions

View File

@@ -24,6 +24,9 @@ func (s *Server) mustAddCron(spec string, cmd func()) {
func (s *Server) checkTasks() {
log.Infof("begin check tasks...")
for id, t := range s.tasks {
if !t.Exists() {
continue
}
log.Infof("task (%s) percentage done: %d%%", t.Name(), t.Progress())
if t.Progress() == 100 {
log.Infof("task is done: %v", t.Name())