Rename migration env var

This commit is contained in:
nicktrn
2023-10-02 21:53:48 +00:00
parent e3c95591a6
commit 25d64786c6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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=
+1 -1
View File
@@ -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<typeof EnvironmentSchema>;
+1 -1
View File
@@ -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();
}