From 4ef4bb8d7da1b34e6fb6a00961f8c4f49a4eda72 Mon Sep 17 00:00:00 2001 From: Sean Pertet Date: Fri, 7 Jun 2024 19:33:36 +0300 Subject: [PATCH] Ensure schedulejob still works --- stacks/gcp/GcpStack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks/gcp/GcpStack.ts b/stacks/gcp/GcpStack.ts index 4e5dd4d..1eae886 100644 --- a/stacks/gcp/GcpStack.ts +++ b/stacks/gcp/GcpStack.ts @@ -165,7 +165,7 @@ export default class GcpStack extends TerraformStack { }); } - if (func.type === "scheduledJob" && func.version === "gen2") { + if (func.type === "scheduledJob" && func.version !== "gen1") { new cloudSchedulerJob.CloudSchedulerJob(this, "scheduler-" + func.name, { name: func.name, schedule: func.schedule,