定制 ejunker/queue-checker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ejunker/queue-checker

最新稳定版本:0.3.0

Composer 安装命令:

composer require ejunker/queue-checker

包简介

Command to check the queue health status

README 文档

README

Command to check the queue health status. Can be used with hosted monitoring systems.

Installation

  1. Add the following to your composer.json and run composer update

    {
        "require": {
            "schickling/queue-checker": "dev-master"
        }
    }
  2. Add Schickling\QueueChecker\QueueCheckerServiceProvider to your config/app.php

Usage

Run as cronjob

Run the following command as a cronjob (for example each minute). If the queue isn't connected or does not work (e.g. jammed), the binded ErrorHandler will be notified. The default ErrorHandler will log the incident.

$ php artisan queue:check

Implement your own ErrorHandler

You can for example write an ErrorHandler that sends a message to your system monitoring platform such as NewRelic. Simply create a class that implements the Schickling\QueueChecker\ErrorHandlers\ErrorHandlerInterface and bind your ErrorHandler with the following code:

App::bind('Schickling\QueueChecker\ErrorHandlers\ErrorHandlerInterface', 'App\MyCustomErrorHandler');

统计信息

  • 总下载量: 168
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-27