Keep finished jobs in the database for history, but skip it while processing the queue#255
Keep finished jobs in the database for history, but skip it while processing the queue#255sadpenguinn wants to merge 1 commit intovgarvardt:masterfrom
Conversation
|
Hooks were designed specifically for this purpose - you can set one with |
|
I'd like to comment on this issue. Deleting the jobs is the right thing to do for performance and tidiness.
I can help with a PR if that helps. |
|
I would not want to add this functionality to the core library, but I'm thinking about adding some sort of plugins system, so that some pieces of functionality could be easily plugged into the core library w/out changing the core itself. This could be the first candidate as core already have everything to implement this functionality. |
It's a useful feature to keep finished jobs in the database. Especially for production environment where this feature can help to discover bug cases in service logic by keeping failed and successful jobs. Clients can use it as well as logs.
Gue will ensure to keep finished jobs in the database using the job's 'SkipDelete' property. But client should handle and monitor the memory size that these jobs take up and reduce the size when it's necessary.