Managing completed job history? #47415
Unanswered
jhardin-accumula
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Folks:
We have a data-transport job worker that essentially retrieves a small batch of data items from a queue, reformats them, and saves them in long-term storage.
The data items are fairly small and generated pretty much constantly, so the log of completed jobs gets painfully large - 7 days' worth can hit 4GB, and they are also logged to the recent jobs history so approximately double that in total.
Is there any standard way to manage the job history at a finer grain? I've searched and found lots regarding failed jobs but not anything regarding completed jobs.
Is there a way to set the automatic pruning threshold to something shorter than 7 days, or to manually prune the history to a given age (something similar to
php artisan queue:prune-failed --hours=48
), or to configure a specific job worker class to say "don't log my history"?Thanks for any assistance!
Beta Was this translation helpful? Give feedback.
All reactions