Add repo polling support
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user