Skip to content

Commit

Permalink
🐛 bug retry (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultleouay authored Nov 29, 2023
1 parent f7feb88 commit 8220930
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/server/src/checker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ checkerRoute.post("/checkerV2", async (c) => {
// catchTooManyRetry(result.data);
return c.text("Ok", 200); // finish the task
}
if (retry > 0 && result.data.status === "error") {
console.log(
`🗑️ The monitor was already in error we should not checked the URL: ${result.data}`,
);
return c.text("Ok", 200);
}

try {
console.log(`🧭 start checker for: ${JSON.stringify(result.data)}`);
Expand Down

0 comments on commit 8220930

Please sign in to comment.