Payload jobs that are successful are deleted, can we keep them for debugging/logging? #13281
-
I was wondering if there's a flag or feature to keep completed jobs in the database? Now they completely disappear. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
matthijs166
Jul 28, 2025
Replies: 1 comment 3 replies
-
There is the deleteJobOnComplete property in the job config. type JobsConfig = {
.....
/**
* Determine whether or not to delete a job after it has successfully completed.
*/
deleteJobOnComplete?: boolean;
..... We have the test setup overwrite this to false not something you want in production. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Failed jobs will persist.
If you got a job running for example every 5 seconds, you would unnecessarily bloat you db. Especially when it is running for a few years.