mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Faces: Run background worker only when data has been updated #3124
This may reduce server load and prevent disks from spinning up. We welcome tests reports! Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -44,7 +44,7 @@ func (w *Sync) logWarn(err error) {
|
||||
func (w *Sync) Start() (err error) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
err = fmt.Errorf("sync: %s (panic)\nstack: %s", r, debug.Stack())
|
||||
err = fmt.Errorf("sync: %s (worker panic)\nstack: %s", r, debug.Stack())
|
||||
log.Error(err)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user