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 5626704 commit 67dab25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/jobs/okx-sync/queues/backfill-queue-listings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ if (config.doBackfillWork) {
createBefore: Number(createBefore),
maxIterations: 10,
});
if (minTimestamp && minTimestamp !== createBefore) {
logger.info("debug", `minTimestamp=${minTimestamp}, createBefore=${createBefore}`);
if (minTimestamp && minTimestamp + 1 !== Number(createBefore)) {
await redis.set(getCreateBeforeKey(runId), minTimestamp + 1);
await addToOkxBackfillQueue(runId);
}
Expand Down

0 comments on commit 67dab25

Please sign in to comment.