<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
therealedatta / laravel-queue-health-check example snippets
use Illuminate\Support\Facades\Event;
use TheRealEdatta\QueueHealthCheck\Events\QueueUnhealthy;
Event::listen(function (QueueUnhealthy $event) {
Slack::to('#ops')->send("Queue {$event->issue->value} for {$event->minutes} min on {$event->hostname}");
});