Test queue job withoutOverlapping with dontRegister method
05:37 21 Jan 2026

I need to configure a job that need to perform some complex time-consuming validation over a Model

(This job will use broadcasting features to notify frontend).

It's important that when one inspection is running a new call from client to inspect this specific Model should be ignored to avoid piling jobs up.

The prevent jobs overlap (https://laravel.com/docs/10.x/queues#preventing-job-overlaps) combined with dontRegister method seems to be the right approach but I am struggling to create a unit test to validate the job behavior.

Could you please share any ideas to do it ?

Many thanks in advance

laravel queue jobs