remove incidents on delete

This commit is contained in:
Alex Holliday committed 2026-02-17 18:30:22 +00:00
1 parent af8083bdaa
commit 97750da889
5 files changed
+49 -1

No files matched your search

@@ -153,6 +153,25 @@ class SuperSimpleQueueHelper {
};
};
getCleanupOrphanedJob = () => {
return async () => {
try {
// Remove orphaned monitors
// remove orphaned monitorStats
// Remove orphaned checks
// Remove orphaned incidents
} catch (error: any) {
this.logger.warn({
message: error.message,
service: SERVICE_NAME,
method: "getCleanupOrphanedJob",
stack: error.stack,
});
throw error;
}
};
};
async isInMaintenanceWindow(monitorId: string, teamId: string) {
const maintenanceWindows = await this.maintenanceWindowsRepository.findByMonitorId(monitorId, teamId);
// Check for active maintenance window: