mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Backend: Add groom worker and test stubs #154
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
@@ -5,8 +5,14 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
Db = sync.Mutex{}
|
||||
Worker = Busy{}
|
||||
Sync = Busy{}
|
||||
Share = Busy{}
|
||||
Db = sync.Mutex{}
|
||||
MainWorker = Busy{}
|
||||
SyncWorker = Busy{}
|
||||
ShareWorker = Busy{}
|
||||
GroomWorker = Busy{}
|
||||
)
|
||||
|
||||
// WorkersBusy returns true if any worker is busy.
|
||||
func WorkersBusy() bool {
|
||||
return MainWorker.Busy() || SyncWorker.Busy() || ShareWorker.Busy() || GroomWorker.Busy()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user