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 992d4e2 commit 245def2
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) {
if (minTimestamp && minTimestamp !== createBefore) {
await redis.set(getCreateBeforeKey(runId), minTimestamp + 1);
await addToOkxBackfillQueue(runId);
}
Expand Down

0 comments on commit 245def2

Please sign in to comment.