Remove jobMeta and use job struct everywhere

This commit is contained in:
2025-05-28 15:59:21 +02:00
parent eef48ac3a3
commit 3efee22536
29 changed files with 163 additions and 785 deletions

View File

@@ -301,7 +301,7 @@ func (t *JobClassTagger) Match(job *schema.Job) {
}
if match.(bool) {
log.Info("Rule matches!")
id := job.ID
id := *job.ID
if !r.HasTag(id, t.tagType, tag) {
r.AddTagOrCreateDirect(id, t.tagType, tag)
}

View File

@@ -105,7 +105,7 @@ func (t *AppTagger) Match(job *schema.Job) {
jobscript, ok := metadata["jobScript"]
if ok {
id := job.ID
id := *job.ID
out:
for _, a := range t.apps {