tangled
alpha
login
or
join now
openstatus.dev
/
openstatus
5
fork
atom
Openstatus
www.openstatus.dev
5
fork
atom
overview
issues
pulls
pipelines
ðŸ˜
thibault.tngl.sh
4 months ago
72befb08
6691c886
+11
-8
1 changed file
expand all
collapse all
unified
split
apps
workflows
src
cron
checker.ts
+11
-8
apps/workflows/src/cron/checker.ts
···
37
37
'grpc.keepalive_permit_without_calls': 1,
38
38
};
39
39
40
40
-
const client = new CloudTasksClient({
41
41
-
channelOptions,
42
42
-
projectId: env().GCP_PROJECT_ID,
43
43
-
credentials: {
44
44
-
client_email: env().GCP_CLIENT_EMAIL,
45
45
-
private_key: env().GCP_PRIVATE_KEY.replaceAll("\\n", "\n"),
46
46
-
},
47
47
-
});
48
40
49
41
export async function sendCheckerTasks(
50
42
periodicity: z.infer<typeof monitorPeriodicitySchema>,
51
43
) {
44
44
+
45
45
+
46
46
+
const client = new CloudTasksClient({
47
47
+
channelOptions,
48
48
+
projectId: env().GCP_PROJECT_ID,
49
49
+
credentials: {
50
50
+
client_email: env().GCP_CLIENT_EMAIL,
51
51
+
private_key: env().GCP_PRIVATE_KEY.replaceAll("\\n", "\n"),
52
52
+
},
53
53
+
});
54
54
+
52
55
const parent = client.queuePath(
53
56
env().GCP_PROJECT_ID,
54
57
env().GCP_LOCATION,