Skip to content

Commit

Permalink
show all the jobs that are checked during garbage collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocazzolato committed Mar 26, 2024
1 parent 3f07a6b commit 76f9f20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spread/testflinger.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ func (p *TestFlingerProvider) GarbageCollect() error {

// Iterate over all the running instances
for _, s := range jobs {
printf("Checking %s...", s.d.JobId)

jobTimeout := haltTimeout
if s.d.JobState == CANCELLED || s.d.JobState == COMPLETE || s.d.JobState == COMPLETED {
continue
}
printf("Checking %s...", s.d.JobId)

var result TestFlingerJobInfoResponse
err := p.do("GET", "/job/" + s.d.JobId , nil, &result)
Expand Down

0 comments on commit 76f9f20

Please sign in to comment.