Skip to content

Commit

Permalink
add continue label
Browse files Browse the repository at this point in the history
  • Loading branch information
gamoutatsumi committed Nov 13, 2023
1 parent 2aa7609 commit b655674
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/starter/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ func (s *Starter) reRunWorkflow(ctx context.Context) {
return true
}

JL: // job loop
for _, j := range jobs.Jobs {
if value, ok := reQueuedJobs.Load(j.GetID()); ok {
expired := value.(time.Time)
Expand All @@ -380,7 +381,7 @@ func (s *Starter) reRunWorkflow(ctx context.Context) {
}
for _, label := range j.Labels {
if !(strings.EqualFold(label, "self-hosted")) {
continue
continue JL
}
}
if j.GetStatus() == "queued" {
Expand Down

0 comments on commit b655674

Please sign in to comment.