fix: add persist timer, rm ssl

This commit is contained in:
Rohit Rajan
2025-11-29 15:06:03 +05:30
parent 762654395b
commit c01e2a8825
4 changed files with 47 additions and 21 deletions

View File

@@ -26,11 +26,7 @@ const pgBossConnectionString = `postgres://${process.env.DB_USER}:${encodeURICom
*/
export const pgBossClient = new PgBoss({
connectionString: pgBossConnectionString,
max: 3, // Small pool since we only send jobs
ssl: {
require: true,
rejectUnauthorized: false,
},
max: 3,
});
let isStarted = false;