reschedule the job if any hook fails

This commit is contained in:
z4yx 2019-11-04 22:52:03 +08:00
parent 9e91fd706e
commit 839363aaaa

View File

@ -113,7 +113,7 @@ func (m *mirrorJob) Run(managerChan chan<- jobMessage, semaphore chan empty) err
managerChan <- jobMessage{
tunasync.Failed, m.Name(),
fmt.Sprintf("error exec hook %s: %s", hookname, err.Error()),
false,
true,
}
return err
}