Skip to content

Commit

Permalink
Auto remove when complete
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Oct 22, 2024
1 parent feddfd2 commit 8ee58c0
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 8ee58c0

Please sign in to comment.