Skip to content

Commit

Permalink
Fix a param for pending job
Browse files Browse the repository at this point in the history
  • Loading branch information
whywaita committed Jan 15, 2025
1 parent e7a8152 commit f1c6eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/datastore/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func getPendingRunByRepo(ctx context.Context, client *github.Client, owner, repo
var pendingRuns []*github.WorkflowRun
for _, r := range runs {
if r.GetStatus() == "queued" || r.GetStatus() == "pending" {
oldMinutes := 30
oldMinutes := 10
sinceMinutes := time.Since(r.CreatedAt.Time).Minutes()
if sinceMinutes >= float64(oldMinutes) {
logger.Logf(false, "run %d is pending over %d minutes, So will enqueue (repo: %s/%s)", r.GetID(), oldMinutes, owner, repo)
Expand Down

0 comments on commit f1c6eb6

Please sign in to comment.