Skip to content

Open-source status page, incident response and uptime monitoring

😭

Thibault Le Ouay72befb08ab9b
diff --git a/apps/workflows/src/cron/checker.ts b/apps/workflows/src/cron/checker.ts
index 1c4985afd..50f8d7d5c 100644
--- a/apps/workflows/src/cron/checker.ts
+++ b/apps/workflows/src/cron/checker.ts
@@ -37,18 +37,21 @@ const channelOptions = {
'grpc.keepalive_permit_without_calls': 1,
};
-const client = new CloudTasksClient({
- channelOptions,
- projectId: env().GCP_PROJECT_ID,
- credentials: {
- client_email: env().GCP_CLIENT_EMAIL,
- private_key: env().GCP_PRIVATE_KEY.replaceAll("\\n", "\n"),
- },
-});
export async function sendCheckerTasks(
periodicity: z.infer<typeof monitorPeriodicitySchema>,
) {
+
+
+ const client = new CloudTasksClient({
+ channelOptions,
+ projectId: env().GCP_PROJECT_ID,
+ credentials: {
+ client_email: env().GCP_CLIENT_EMAIL,
+ private_key: env().GCP_PRIVATE_KEY.replaceAll("\\n", "\n"),
+ },
+ });
+
const parent = client.queuePath(
env().GCP_PROJECT_ID,
env().GCP_LOCATION,