@jack100 Are you running Horizon? Or are you just running some php artisan queue:work commands from cron?
Have you tried to php artisan queue:flush and php artisan queue:restart?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using Jobs in Laravel with Redis to schedule executions. It works well with my old jobs.
I have implemented a new one now, which throws an error on one line of code since the reference is not found. I commented out this line from the code base, but the error is still thrown on the commented line. ????
I cleared Laravel cache: php artisan dumpautoload
I restartetd supervisor.
The changed file is also on the server. I checked the files directly.
Still the same error. From where comes this old version of the Job?
For me it worked to run:
composer dumpautoload -o
This seems to update the outdated code fragments.
Please or to participate in this conversation.