mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-12-31 02:46:16 +01:00
Only register PullWorker task if it was configured
This commit is contained in:
@@ -116,7 +116,9 @@ func Start(cronCfg, archiveConfig json.RawMessage) {
|
||||
RegisterLdapSyncService(lc.SyncInterval)
|
||||
}
|
||||
|
||||
RegisterMetricPullWorker()
|
||||
if config.Keys.UpstreamMetricRepository != nil {
|
||||
RegisterMetricPullWorker()
|
||||
}
|
||||
|
||||
RegisterFootprintWorker()
|
||||
RegisterUpdateDurationWorker()
|
||||
|
||||
Reference in New Issue
Block a user