Skip to content

Commit

Permalink
Merge pull request #339 from pimlicolabs/bull-library
Browse files Browse the repository at this point in the history
Auto remove when complete
  • Loading branch information
plusminushalf authored Oct 22, 2024
2 parents 702125e + 8ee58c0 commit a9a0bda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/handlers/eventManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ export class EventManager {
// log to redis here
let jobStatus: string
try {
await this.redisEventManagerQueue.add(entry)
await this.redisEventManagerQueue.add(entry, {
removeOnComplete: true,
removeOnFail: true
})
jobStatus = "success"
} catch (e) {
this.logger.error(
Expand Down

0 comments on commit a9a0bda

Please sign in to comment.