qbeacon/queue-monitor 问题修复 & 功能扩展

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

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

qbeacon/queue-monitor

最新稳定版本:1.0.0

Composer 安装命令:

composer require qbeacon/queue-monitor

包简介

A real-time dashboard for Laravel queued jobs.

README 文档

README

QBeacon is a real-time dashboard for monitoring Laravel queued jobs. It provides an easy-to-use interface for tracking the status of your jobs, retrying failed ones, and gaining insights into your job processing.

Screenshot from 2025-02-10 23-54-56

Features

  • Real-time monitoring of Laravel jobs.
  • Retry failed jobs directly from the dashboard.
  • View detailed job statuses (e.g., Pending, Processing, Failed, Completed).
  • Tracks job attempts and provides detailed logs.

Installation

Requirements

  • PHP: >=8.0
  • Laravel: >=9.x
  • Database: Ensure you have the failed_jobs table configured in your Laravel project.

Steps

  1. Install the package via Composer:

    composer require qbeacon/queue-monitor
  2. Publish the package assets:

    php artisan vendor:publish --tag=queue-monitor-assets --force
  3. Run migrations to create the required tables:

    php artisan migrate
  4. Add the following route to your web.php file (optional if routes are not automatically loaded):

    Route::get('/queue-monitor', function () {
        return view('queue-monitor::dashboard');
    });
  5. Start the Laravel queue worker:

    php artisan queue:work

Usage

Monitoring Jobs

Navigate to /queue-monitor in your application to view the dashboard. The dashboard shows:

  • Job Name: The name of the job class.
  • Status: The current status of the job (e.g., Failed, Completed, Processing).
  • Attempts: The number of attempts made to process the job.
  • Created At: The timestamp when the job was created.

Retrying Failed Jobs

  1. Identify the failed job in the list.
  2. Click the red Retry button in the "Action" column.
  3. The job will be re-queued, and the status will update accordingly.

Dashboard

Below is a snapshot of the QBeacon dashboard: Screenshot from 2025-02-10 23-54-56

Contributing

Feel free to contribute to this project by submitting issues or pull requests. Contributions are welcome to improve features or fix bugs.

License

QBeacon is open-source software licensed under the MIT license.

Support

If you encounter any issues, feel free to open an issue on the GitHub repository.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-07