Skip to content

Commit

Permalink
Merge pull request #24 from XinFinOrg/retry-bug-fix
Browse files Browse the repository at this point in the history
retry bug fix
  • Loading branch information
GalaxySciTech authored Sep 12, 2023
2 parents 391fb1f + 9d76590 commit a0a35fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/conntroller/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export class Worker {
this.liteCron = new CronJob(config.cronJob.liteJobExpression, async () => {
try {
logger.info("⏰ Executing normal flow periodically");
await this.liteBootstrap();
if (!(await this.liteBootstrap())) {
throw Error("fail start retry");
}
} catch (error) {
logger.error("Fail to run cron job normally", {
message: error.message,
Expand Down

0 comments on commit a0a35fd

Please sign in to comment.