定制 kfoobar/flush-horizon 二次开发

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

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

kfoobar/flush-horizon

最新稳定版本:v1.0.1

Composer 安装命令:

composer require kfoobar/flush-horizon

包简介

A Laravel package designed to efficiently manage and clear failed jobs from Horizon.

README 文档

README

This package enhances your ability to efficiently manage the list of failed jobs within Laravel Horizon. It introduces two new console commands to your Laravel application, enabling you to manually flush all failed jobs stored in Redis, as well as flush all keys generated by Horizon in Redis.

While Laravel Horizon automatically purges failed jobs after 7 days by default, this package provides you with the flexibility to perform the flush operation manually through console commands whenever necessary.

Requirements

  • Laravel version 8.0 or newer
  • Laravel Horizon
  • Redis as the caching and session driver

Installing the Package

To incorporate the package into your project, execute the following command through Composer:

composer require kfoobar/flush-horizon

Getting Started

Flushing Failed Jobs

To clear all failed jobs from your queue, utilize the command below:

php artisan horizon:flush

Resetting Horizon Data

For a complete data reset, including all jobs and records, run:

php artisan horizon:reset

Contributing

Your contributions are highly appreciated! We welcome any form of contribution to improve and expand the functionality of this package.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-08