mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 21:01:40 +02:00
Revert interface from jobMeta to job type. Extend job classifier tagger. Cleanup test rules.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user