Change launch logic to receive config in scheduler

This commit is contained in:
2022-12-24 00:10:06 -07:00
parent b29d3a8f80
commit c731e560af
5 changed files with 59 additions and 70 deletions
+3 -2
View File
@@ -90,8 +90,9 @@ func pollJob(repoName string, jobConfig config.Job, runCh chan jobscheduler.Run)
for _, ref := range refsToRunFor {
log.Debugf("Dispatching job for ref %v in repo %v", ref, repoName)
runCh <- jobscheduler.Run{
Name: repoName,
Ref: ref,
JobName: repoName,
JobConfig: jobConfig,
Ref: ref,
}
}
}