Skip to content

Commit

Permalink
Debug CI...
Browse files Browse the repository at this point in the history
  • Loading branch information
irees committed Jan 25, 2024
1 parent 7e8ac11 commit 625ae19
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions workers/fetch_enqueue_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package workers

import (
"context"
"fmt"
"time"

"github.com/interline-io/log"
Expand Down Expand Up @@ -57,6 +58,7 @@ func (w *FetchEnqueueWorker) Run(ctx context.Context, job jobs.Job) error {
}
}
}
fmt.Printf("checkUrlTypes %#v\n", checkUrlTypes)

// Check for fetch wait times and error backoffs
// This is structured to avoid bad N+1 queries
Expand All @@ -71,19 +73,25 @@ func (w *FetchEnqueueWorker) Run(ctx context.Context, job jobs.Job) error {
feedIds = append(feedIds, feed.ID)
}
}
fmt.Printf("feedIds %#v\n", feedIds)

feedChecks, err := actions.CheckFetchWaitBatch(ctx, db, feedIds, urlType)
if err != nil {
return err
}
var feedsOk []actions.CheckFetchWaitResult
for _, check := range feedChecks {
fmt.Printf("check %#v\n", check)
if check.OK() || w.IgnoreFetchWait {
fmt.Printf("ok\n")
feedsOk = append(feedsOk, check)
}
}
feedsByUrlType[urlType] = feedsOk
}

fmt.Printf("feedsByUrlType %#v\n", feedsByUrlType)

// Static fetch
var jj []jobs.Job
for _, urlType := range staticKeys {
Expand Down

0 comments on commit 625ae19

Please sign in to comment.