Skip to content

Commit

Permalink
fix add job
Browse files Browse the repository at this point in the history
  • Loading branch information
duonghb53 committed Nov 7, 2024
1 parent d7e6165 commit 04ba74d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/queues/token/token.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,21 @@ export class TokenProcessor implements OnModuleInit {
QUEUES.TOKEN.JOB_SYNC_NATIVE_ASSET_HOLDER,
{ explorer },
{
repeat: { cron: `${index + 2} * * * *` },
repeat: { cron: `${(index + 2) % 6} * * * *` },
},
);
this.tokenQueue.add(
QUEUES.TOKEN.JOB_SYNC_CW20_ASSET_HOLDER,
{ explorer },
{
repeat: { cron: `${index + 1} * * * *` },
repeat: { cron: `${(index + 3) % 6} * * * *` },
},
);
this.tokenQueue.add(
QUEUES.TOKEN.JOB_SYNC_ERC20_ASSET_HOLDER,
{ explorer },
{
repeat: { cron: `${index + 3} * * * *` },
repeat: { cron: `${(index + 4) % 6} * * * *` },
},
);
});
Expand Down

0 comments on commit 04ba74d

Please sign in to comment.