You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Re-introduce "keepDoneJobs" option to retain successful jobs #97
I had been using the dev-develop version of this package for a long time. Today, I upgraded to the latest stable release and realized that successful jobs are no longer being saved in the database. It appears that the keepDoneJobs configuration option has been removed.
I would like to request bringing this feature back or introducing a similar mechanism to retain successfully processed jobs.
Context & Use Case
I am currently using Database as my defaultHandler. Previously, the keepDoneJobs option allowed me to keep successfully completed jobs in the database rather than deleting them immediately. This was incredibly useful for observing, auditing, and debugging successful job executions over time.
Now that successful jobs are instantly purged upon completion, I have lost the ability to monitor job history directly from the database, unless I build a completely separate custom logging mechanism.
Proposed Solution
Re-add the keepDoneJobs boolean configuration (perhaps defaulting to false to maintain the current default behavior). When set to true, the Database handler should mark the jobs as done instead of deleting the records.
Thank you for your time and for the great work on this package!
Activity
michalsn commentedon Aug 10, 2026
The reason for removing the
keepDoneJobsoption was mentioned in #69.You can easily use events to log failed and successful jobs in one table if you need it.
mbnl commentedon Aug 12, 2026
Thank you for letting me know. This process will be much more time-consuming for me than the previous system.