mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-04-01 21:47:31 +02:00
Add tagger config option and command line switch to run taggers on all jobs
This commit is contained in:
@@ -213,12 +213,21 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
if flagApplyTags {
|
||||
if err := tagger.RunTaggers(); err != nil {
|
||||
log.Abortf("Running job taggers.\nError: %s\n", err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
if !flagServer {
|
||||
log.Exit("No errors, server flag not set. Exiting cc-backend.")
|
||||
}
|
||||
|
||||
archiver.Start(repository.GetJobRepository())
|
||||
tagger.Init()
|
||||
|
||||
if config.Keys.EnableJobTaggers {
|
||||
tagger.Init()
|
||||
}
|
||||
taskManager.Start()
|
||||
serverInit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user