descom/laravel-supervisor-queue
Composer 安装命令:
composer require descom/laravel-supervisor-queue
包简介
Laravel package for supervisor queue:work
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-07