Openstatus www.openstatus.dev

๐Ÿ› bug retry (#493)

authored by

Thibault Le Ouay and committed by
GitHub
82209304 f7feb886

+6
+6
apps/server/src/checker/index.ts
··· 86 86 // catchTooManyRetry(result.data); 87 87 return c.text("Ok", 200); // finish the task 88 88 } 89 + if (retry > 0 && result.data.status === "error") { 90 + console.log( 91 + `๐Ÿ—‘๏ธ The monitor was already in error we should not checked the URL: ${result.data}`, 92 + ); 93 + return c.text("Ok", 200); 94 + } 89 95 90 96 try { 91 97 console.log(`๐Ÿงญ start checker for: ${JSON.stringify(result.data)}`);