Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tr8norman's avatar

[LARAVEL HORIZON] trim.pending behavior on horizon.php config

I was wondering what about the trim.pending.

A job is considered Pending only if it is waiting for an available queue worker, is that right?

If I set trim.pending as 60, does that mean a job can only wait in the queue for a maximum of 60mins. If the queue is busy and the job did not execute in the 60mins timespan will the job be deleted?

0 likes
4 replies
neilstee's avatar

or actually, it can be flag as "failed" jobs.

Maybe try setting the trim.pending to 1 minute and create a job that runs for too long (let's say 5mins) so you can have pending jobs that will exceed 1 minute and see if it will be deleted or mark as a failed job.

Please or to participate in this conversation.