定制 descom/laravel-supervisor-queue 二次开发

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

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

descom/laravel-supervisor-queue

Composer 安装命令:

composer require descom/laravel-supervisor-queue

包简介

Laravel package for supervisor queue:work

README 文档

README

tests analyse style

The motivation for creating this package is to allow working with queues in a shared hosting environment.

Install

compoer require descom/laravel-supervisor-queue

Configure

php artisan vendor:publish --provider="Descom\Supervisor\SupervisorServiceProvider" --tag="config"

This is the contents of the published config file:

<?php

return [
    'workers' => [
        'default' => [
            'options' => [
                // 'sleep' => 3,
                // 'tries' => 3,
                // 'max-time' => 3600,
            ],

            // 'connection' => 'database',

            // 'enabled' => false,
        ],

        // 'other_worker' => [
        //     'options' => [max-time' => 3600],
        //     'connection' => 'sqs',
        // ],
    ],

    'schedule' => [

        'start' => [
            'enabled' => true,

            // 'cron' => '* * * * *',
        ],

    ],
];

Usage

php artisan supervisor:status
php artisan supervisor:start
php artisan supervisor:stop
php artisan supervisor:restart
use Descom\Supervisor\Service;

Service::status();
Service::start();
Service::stop();
Service::restart();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固