Queue not processing
Veldriq
Symptom: jobs stay pending; PDFs missing; mail “sent” but empty inbox; webhooks never leave.
Likely cause: no worker; failed jobs; QUEUE_CONNECTION mismatch.
CMS CRUD can look healthy while PDFs, webhooks, and mail sit in the jobs table. Horizon is not in this product.
- Production default is
QUEUE_CONNECTION=database. Redis is optional.syncruns jobs inside the HTTP request — not for production. - Is anything consuming jobs? cPanel: cron drain
queue:work --stop-when-empty. VPS: persistentphp artisan queue:work. Frombackend/:php artisan queue:work --once. - SQL: growing
jobscount means nobody is working. - Platform Admin → Queues (
/admin/queues) — title Failed jobs. Orphp artisan queue:failed.
- Start
queue:workor the cron drain. After deploy:php artisan queue:restart. - Retry failed jobs. The scheduler prunes failures weekly (
queue:prune-failed --hours=168). - If SSH
queue:workworks but cron does not: cron PHP is not 8.4 or the path is wrong. - After reboot, jobs pile up → crontab or systemd unit was not enabled.
Cron alone does not generate invoice PDFs. Worker + cron are different.