mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-16 13:25:55 +08:00
Update index.ts
This commit is contained in:
parent
fd18f2269b
commit
fc3328f3d1
@ -2,6 +2,7 @@ import { getWebScraperQueue } from "../queue-service";
|
||||
import { sendSlackWebhook } from "./slack";
|
||||
|
||||
export function initAlerts() {
|
||||
try {
|
||||
if (
|
||||
process.env.SLACK_WEBHOOK_URL &&
|
||||
process.env.ENV === "production" &&
|
||||
@ -52,4 +53,7 @@ export function initAlerts() {
|
||||
|
||||
setInterval(checkAll, 5 * 60 * 1000); // Run every 5 minutes
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Failed to initialize alerts:", error);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user