anthonyedmonds/laravel-multi-queue 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

anthonyedmonds/laravel-multi-queue

最新稳定版本:1.0.1

Composer 安装命令:

composer require anthonyedmonds/laravel-multi-queue

包简介

Have a Laravel job worker listen to multiple queues instead of just one!

README 文档

README

Have a Laravel job worker listen to multiple queues instead of just one!

About

By default Laravel Queue Workers can only monitor one queue at a time.

This library provides a Connector and a Queue driver to handle multiple queues with the same worker.

The only driver currently supported is Laravel's database driver.

Usage

  1. Install the library using Composer:
    composer require anthonyedmonds/laravel-multi-queue
  2. Adjust your queue configuration file:
    • Set the driver of your database queue to multi-queue
    • Add the queues key with a list of queues for the connection to monitor:
    // Provide a static list...
    'queues' => ['default', 'mail', 'other'],
    
    // Or add them from the environment...
    'queues' => explode(
        ',',
        env(
            'DB_QUEUE_MULTI',
            env('DB_QUEUE', 'default'),
        ),
    ),

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-01