Laravel queue keeps using old code?

Gemini generated image s8u63ls8u63ls8u6

We’ve been having an issue in our Laravel instance where in our previous code were still being executed even though it doesn’t exist anymore anywhere in the source code.

For our deployment we would restart horizon via supervisor and clear cache/compiled codes for both composer and laravel. This only happens to a specific class though which doesn’t do anything special just sends an email.

Last resort we did which seems to work is included a restart of the actual queue via “artisan queue:restart” which I expect to already being run when horizon restarts.

It’s been weeks now and we’re still observing if it still occurs, so far so good.

So if you’re having the same issue with laravel horizon or your queue try this out and I hope that this helps.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *