Skip to content

Commit

Permalink
fix(runner): status code condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jan 7, 2024
1 parent f47c2ee commit 446515f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/runners/JobPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func (p *JobPool) checkNewJobs() {
return
}

if resp.StatusCode != 200 {
if resp.StatusCode >= 400 {
log.Error("Checking new jobs error, server returns code ", resp.StatusCode)
return
}
Expand Down

0 comments on commit 446515f

Please sign in to comment.