Start/restart poll job when created or updated

This currently contains the logic for restarting updated jobs,
but nothing exercises this logic. The logic for starting polling
for a newly created pipeline is implemented.
This commit is contained in:
2023-04-07 17:40:49 -06:00
parent ed7df18f83
commit 954966db58
4 changed files with 51 additions and 13 deletions
+2 -1
View File
@@ -46,7 +46,7 @@ func main() {
return
}
_ = poll.StartPolling(configData.Config.PipelineConf, db)
pollChan := poll.StartPolling(configData.Config.PipelineConf, db)
mux := http.NewServeMux()
@@ -57,5 +57,6 @@ func main() {
configData.Config.PipelineConf,
db,
runnerManagerChans,
pollChan,
))
}