mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
Start footprint service
This commit is contained in:
parent
c459724114
commit
47b14f932e
@ -16,7 +16,7 @@ import (
|
|||||||
"github.com/go-co-op/gocron/v2"
|
"github.com/go-co-op/gocron/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func registerFootprintWorker() {
|
func RegisterFootprintWorker() {
|
||||||
log.Info("Register Footprint Update service")
|
log.Info("Register Footprint Update service")
|
||||||
d, _ := time.ParseDuration("10m")
|
d, _ := time.ParseDuration("10m")
|
||||||
s.NewJob(gocron.DurationJob(d),
|
s.NewJob(gocron.DurationJob(d),
|
||||||
|
@ -79,6 +79,8 @@ func Start() {
|
|||||||
RegisterLdapSyncService(lc.SyncInterval)
|
RegisterLdapSyncService(lc.SyncInterval)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RegisterFootprintWorker()
|
||||||
|
|
||||||
s.Start()
|
s.Start()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user