Revert interface from jobMeta to job type. Extend job classifier tagger. Cleanup test rules.

This commit is contained in:
2025-05-23 07:48:27 +02:00
parent ca634bb707
commit 733e3ea9d5
11 changed files with 202 additions and 158 deletions

View File

@@ -13,7 +13,7 @@ import (
type Tagger interface {
Register() error
Match(job *schema.JobMeta)
Match(job *schema.Job)
}
var (
@@ -48,5 +48,8 @@ func (jt *JobTagger) JobStartCallback(job *schema.Job) {
}
}
func (jt *JobTagger) JobStopCallback(job *schema.JobMeta) {
func (jt *JobTagger) JobStopCallback(job *schema.Job) {
for _, tagger := range jobTagger.stopTaggers {
tagger.Match(job)
}
}