Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Remove BullMQ jobs on fail

Edward Cuifdc0c9ebce57
diff --git a/server/src/queues/adapters/bullMQAdapter.ts b/server/src/queues/adapters/bullMQAdapter.ts
index 0862e4450..9227231c8 100644
--- a/server/src/queues/adapters/bullMQAdapter.ts
+++ b/server/src/queues/adapters/bullMQAdapter.ts
@@ -84,7 +84,7 @@ export class BullMQAdapter implements IJobQueue {
defaultJobOptions: {
attempts: 1, // No retries, same as pg-boss
removeOnComplete: true,
- removeOnFail: false, // Keep failed jobs for debugging
+ removeOnFail: true,
},
});