Skip to content

Commit 7cc9259

Browse files
committed
feat: add pg boss config
1 parent 11f75a3 commit 7cc9259

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/jobs/base.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,12 @@ export const boss = singleton(
7171
() =>
7272
new pgBoss({
7373
connectionString: env.DATABASE_URL,
74+
max: 5,
75+
retryBackoff: true,
76+
retryLimit: 4,
77+
expireInHours: 48,
78+
archiveCompletedAfterSeconds: 60 * 60 * 2, // 2 hours
79+
deleteAfterDays: 2,
80+
retentionDays: 2,
7481
}),
7582
);

0 commit comments

Comments
 (0)