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 ebababa commit 5626704
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 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,8 @@ if (config.doBackfillWork) {
createBefore: Number(createBefore),
maxIterations: 10,
});
if (minTimestamp && minTimestamp + 1 !== createBefore) {
if (minTimestamp && minTimestamp !== createBefore) {
logger.info("debug", `minTimestamp=${minTimestamp}, createBefore=${createBefore}`);
await redis.set(getCreateBeforeKey(runId), minTimestamp + 1);
await addToOkxBackfillQueue(runId);
}
Expand Down

0 comments on commit 5626704

Please sign in to comment.