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.
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_jobstable configured in your Laravel project.
Steps
-
Install the package via Composer:
composer require qbeacon/queue-monitor
-
Publish the package assets:
php artisan vendor:publish --tag=queue-monitor-assets --force
-
Run migrations to create the required tables:
php artisan migrate
-
Add the following route to your
web.phpfile (optional if routes are not automatically loaded):Route::get('/queue-monitor', function () { return view('queue-monitor::dashboard'); });
-
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
- Identify the failed job in the list.
- Click the red Retry button in the "Action" column.
- The job will be re-queued, and the status will update accordingly.
Dashboard
Below is a snapshot of the QBeacon dashboard:
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
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-07