From 25d64786c6139ddb017b875301e84d19af022199 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Mon, 2 Oct 2023 21:53:48 +0000 Subject: [PATCH] Rename migration env var --- .env.example | 2 +- apps/webapp/app/env.server.ts | 2 +- apps/webapp/app/services/worker.server.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 5bac3ac60..a168668d2 100644 --- a/.env.example +++ b/.env.example @@ -26,7 +26,7 @@ NODE_ENV=development # Required for upgrading graphile-worker to v0.14 when graceful shutdown is impossible or impractical. # Start the app once with this set, then unset and restart. The migration should succeed. -# FAIL_LOCKED_JOBS_ON_STARTUP=true +# FAIL_LOCKED_JOBS_FOR_MIGRATION=true # CLOUD VARIABLES POSTHOG_PROJECT_KEY= diff --git a/apps/webapp/app/env.server.ts b/apps/webapp/app/env.server.ts index f7794d06e..c8577e5be 100644 --- a/apps/webapp/app/env.server.ts +++ b/apps/webapp/app/env.server.ts @@ -40,7 +40,7 @@ const EnvironmentSchema = z.object({ EXECUTION_WORKER_POLL_INTERVAL: z.coerce.number().int().default(1000), WORKER_ENABLED: z.string().default("true"), EXECUTION_WORKER_ENABLED: z.string().default("true"), - FAIL_LOCKED_JOBS_ON_STARTUP: z.string().default("false"), + FAIL_LOCKED_JOBS_FOR_MIGRATION: z.string().default("false"), }); export type Environment = z.infer; diff --git a/apps/webapp/app/services/worker.server.ts b/apps/webapp/app/services/worker.server.ts index 473202709..a841b4ddf 100644 --- a/apps/webapp/app/services/worker.server.ts +++ b/apps/webapp/app/services/worker.server.ts @@ -111,7 +111,7 @@ if (env.NODE_ENV === "production") { } export async function init() { - if (env.FAIL_LOCKED_JOBS_ON_STARTUP === "true") { + if (env.FAIL_LOCKED_JOBS_FOR_MIGRATION === "true") { return failLockedTasks(); }