mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Sync: Import/index after downloading #225
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
@@ -13,13 +13,13 @@ var stop = make(chan bool, 1)
|
||||
|
||||
// Start runs the service workers every 10 minutes.
|
||||
func Start(conf *config.Config) {
|
||||
ticker := time.NewTicker(10 * time.Minute)
|
||||
ticker := time.NewTicker(conf.WakeupInterval())
|
||||
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case <-stop:
|
||||
log.Info("shutting down service workers")
|
||||
log.Info("shutting down workers")
|
||||
ticker.Stop()
|
||||
mutex.Share.Cancel()
|
||||
mutex.Sync.Cancel()
|
||||
|
||||
Reference in New Issue
Block a user