spatie/laravel-failed-job-monitor
Send instant notifications when Laravel queued jobs fail. Uses Laravel’s notification system with built-in Mail and Slack support, configurable via env/config, and easy install/publish. Great for monitoring production queues and alerting the right people.
notificationFilter to gradually roll out monitoring for critical jobs (e.g., only(['SendInvoiceJob', 'ProcessPaymentJob'])).local environments (via FAILED_JOB_MONITOR_ENABLED) but enable them in staging/production.Notification or Notifiable classes.Notifiable class or pair with a workflow tool like Temporal.retryAfter() or a package like spatie/laravel-activitylog."This package turns silent job failures into actionable alerts—reducing downtime and firefighting. For example, if a payment-processing job fails, our team gets an instant Slack/email notification instead of discovering it hours later via support tickets. It’s a 10-minute setup that pays off immediately in reliability. The cost? Zero—it’s open-source and maintained by Spatie, a trusted Laravel partner."
Key Outcomes:
*"This solves the ‘black box’ problem of queued jobs. Currently, if a job fails, we might not know until a user reports an issue or we manually check logs. This package:
SendWelcomeEmailJob), extend to other channels, or subclass for advanced logic.Implementation:
composer require spatie/laravel-failed-job-monitor)..env (e.g., FAILED_JOB_EMAILS=team@example.com).Tradeoffs:
How can I help you explore Laravel packages today?