Add tagger config option and command line switch to run taggers on all jobs

This commit is contained in:
2025-05-23 10:13:59 +02:00
parent 733e3ea9d5
commit 3c66840f95
6 changed files with 87 additions and 15 deletions

View File

@@ -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()