Add repo polling support

This commit is contained in:
2022-12-20 18:42:34 -07:00
parent 53a3a70a06
commit 9cb4ca687e
7 changed files with 223 additions and 5 deletions
+2 -1
View File
@@ -42,6 +42,7 @@ type jobScheduler struct {
type Run struct {
Name string
Ref string
}
type runnerJob struct {
@@ -64,7 +65,7 @@ func runJobScheduler(j jobScheduler) {
for i, runner := range j.connectedRunners {
// don't send job to runner that is already occupied
if !runner.running {
// don't send job to runnenr with closed receiveChan (is defunct)
// don't send job to runner with closed receiveChan (is defunct)
// there should never be messages to read on an inactive runner,
// so we aren't losing any data here
select {