Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: removed pg boss stop from migration

=e5fc00e06eda
diff --git a/backend/src/db/migrations/20260203141935_durable-queue.ts b/backend/src/db/migrations/20260203141935_durable-queue.ts
index 8954ea2adf..2b8d6e7e88 100644
--- a/backend/src/db/migrations/20260203141935_durable-queue.ts
+++ b/backend/src/db/migrations/20260203141935_durable-queue.ts
@@ -1,7 +1,6 @@
/* eslint-disable no-console */
import { Knex } from "knex";
import pg from "pg";
-import PgBoss from "pg-boss";
import { QueueJobs, QueueName } from "@app/queue";
@@ -136,13 +135,6 @@ export async function up(knex: Knex): Promise<void> {
: false
};
- // this stop pg boss from taking any new job
- const pgboss = new PgBoss({
- connectionString: config.connectionString,
- ssl: config.ssl
- });
- await pgboss.stop({ close: true });
-
const db = new pg.Client(config);
await db.connect();
try {