Skip to content

Commit

Permalink
fix: stucked okx backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeroman committed Oct 13, 2023
1 parent 245def2 commit ebababa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs/okx-sync/queues/backfill-queue-listings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if (config.doBackfillWork) {
createBefore: Number(createBefore),
maxIterations: 10,
});
if (minTimestamp && minTimestamp !== createBefore) {
if (minTimestamp && minTimestamp + 1 !== createBefore) {
await redis.set(getCreateBeforeKey(runId), minTimestamp + 1);
await addToOkxBackfillQueue(runId);
}
Expand Down

0 comments on commit ebababa

Please sign in to comment.