Skip to content

Commit

Permalink
fix indexing loop (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr authored Nov 6, 2024
1 parent c55bf0d commit 990d2ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/indexing/task_indexing.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ func (i *IndexingTask) schedule(ctx context.Context, taskFunc harmonytask.AddTas

err := i.db.Select(ctx, &pendings, `SELECT uuid FROM market_mk12_deal_pipeline
WHERE sealed = TRUE
AND indexing_task_id IS NULL
AND indexing_task_id IS NULL
AND indexed = FALSE
ORDER BY indexing_created_at ASC;`)
if err != nil {
return false, xerrors.Errorf("getting pending indexing tasks: %w", err)
Expand Down

0 comments on commit 990d2ea

Please sign in to comment.