mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -59,9 +59,9 @@ func Start(conf *config.Config) {
|
||||
mutex.SyncWorker.Cancel()
|
||||
return
|
||||
case <-ticker.C:
|
||||
StartMeta(conf)
|
||||
StartShare(conf)
|
||||
StartSync(conf)
|
||||
RunMeta(conf)
|
||||
RunShare(conf)
|
||||
RunSync(conf)
|
||||
}
|
||||
}
|
||||
}()
|
||||
@@ -72,9 +72,9 @@ func Stop() {
|
||||
stop <- true
|
||||
}
|
||||
|
||||
// StartMeta runs the metadata worker once.
|
||||
func StartMeta(conf *config.Config) {
|
||||
if !mutex.WorkersRunning() {
|
||||
// RunMeta runs the metadata worker once.
|
||||
func RunMeta(conf *config.Config) {
|
||||
if !mutex.IndexWorkersRunning() {
|
||||
go func() {
|
||||
worker := NewMeta(conf)
|
||||
|
||||
@@ -88,8 +88,8 @@ func StartMeta(conf *config.Config) {
|
||||
}
|
||||
}
|
||||
|
||||
// StartShare runs the share worker once.
|
||||
func StartShare(conf *config.Config) {
|
||||
// RunShare runs the share worker once.
|
||||
func RunShare(conf *config.Config) {
|
||||
if !mutex.ShareWorker.Running() {
|
||||
go func() {
|
||||
worker := NewShare(conf)
|
||||
@@ -100,8 +100,8 @@ func StartShare(conf *config.Config) {
|
||||
}
|
||||
}
|
||||
|
||||
// StartSync runs the sync worker once.
|
||||
func StartSync(conf *config.Config) {
|
||||
// RunSync runs the sync worker once.
|
||||
func RunSync(conf *config.Config) {
|
||||
if !mutex.SyncWorker.Running() {
|
||||
go func() {
|
||||
worker := NewSync(conf)
|
||||
|
||||
Reference in New Issue
Block a user