Hello everyone,
I am facing a strange issue with Laravel Queues on my production server. Everything works perfectly on my local machine, but after deploying to the production server, the queue worker seems to ignore the jobs.
The Problem:
I am using the database driver. The jobs are successfully dispatched and inserted into the jobs table. However, they remain there indefinitely.
attempts is 0
reserved_at is NULL
Here is a screenshot of my database table showing the pending jobs:

What happens when I run the worker:
When I execute php artisan queue:work on the server, I get the standard startup message:
But then it just hangs there. It does not pick up any jobs, no errors are thrown, and the database rows remain untouched.
What I have tried so far:
- Ran
php artisan optimize:clear and config:clear.
- Verified that
QUEUE_CONNECTION=database in the .env file.
- Checked the server time (it matches).
- Restarted the queue worker (
queue:restart).
- Verified that the PHP version in CLI matches the web version.
Has anyone experienced this "hanging" behavior where the worker starts but never processes existing database records?
Any help would be appreciated.