I have a server that I manage with forge. I'm seeing a few things that don't make sense to me.
Server Info: I have an application server, a redis server for queues, sessions, and caching and a database server for MySql. These are all set up in a network on Forge so they can communicate with eachother. My cache, session and queues are all using the default settings that laravel provides out of the box. My application server is using opcache.
First: The queue worker is restarting constantly. When I view the progress it is always at a runtime of 14 seconds or less, or restarting. This can't be right.
Seconde. The queue is still processing event listeners that don't exist in my application anymore. Like it's picking up jobs from old code still.
Some things that I did that might be a problem:
- I ran php artisan queue:work and php artisan queue:listen on my application server while also having a daemon on forge that is running the same queue.
- I ran php artisan queue:flush on my application server to try to get rid of old jobs that were running the code that doesn't exist anymore.