Skip to content

Commit

Permalink
Merge pull request #40 from mudkipme/develop
Browse files Browse the repository at this point in the history
fix: remove old jobs
  • Loading branch information
mudkipme committed Sep 3, 2023
2 parents 8758734 + 9a96eb2 commit e565a8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/klinklang-server/src/lib/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export const getWorker = ({ config, logger }: { config: Config, logger: Logger }
return await processAction(job)
}, {
connection: config.get('redis'),
autorun: false
autorun: false,
removeOnComplete: { count: 1000 },
removeOnFail: { count: 1000 }
})

worker.on('failed', (job, err) => {
Expand Down

0 comments on commit e565a8b

Please sign in to comment.