warn instead of throw on failure to build check
This commit is contained in:
1 parent
f600647ff0
commit
8089e71f96
1 file changed
+9
-1
@@ -86,7 +86,15 @@ class SuperSimpleQueueHelper {
|
|||||||
|
|
||||||
// Step 3. Build check
|
// Step 3. Build check
|
||||||
const check = await this.checkService.buildCheck(status);
|
const check = await this.checkService.buildCheck(status);
|
||||||
|
if (!check) {
|
||||||
|
this.logger.warn({
|
||||||
|
message: `No check could be built for monitor ${monitorId}`,
|
||||||
|
service: SERVICE_NAME,
|
||||||
|
method: "getMonitorJob",
|
||||||
|
details: { code: status.code, message: status.message },
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Step 4 Add check to buffer
|
// Step 4 Add check to buffer
|
||||||
this.buffer.addToBuffer({ check });
|
this.buffer.addToBuffer({ check });
|
||||||
// Step 4. Update monitor status
|
// Step 4. Update monitor status
|
||||||
|
|||||||
Reference in new issue
Block a user