tvup/redis-job-inspector
Composer 安装命令:
composer require tvup/redis-job-inspector
包简介
Inspect Laravel Redis queue jobs like Eloquent
README 文档
README
Inspect Laravel Redis queue jobs using an Eloquent-like query builder.
Installation
Install via Composer:
composer require tvup/redis-job-inspector
This package requires PHP 8.1+ and supports Laravel 10 and 11. Laravel's package auto-discovery will register the service provider and facade.
Usage
Use the RedisQueue facade to build and execute queries against your Redis queues:
use RedisQueue; // All scheduled and running jobs on the default queue $jobs = RedisQueue::jobs()->get(); // Scheduled jobs on the "emails" queue $scheduled = RedisQueue::jobs() ->inQueue('emails') ->withJobState('Scheduled') ->get(); // Jobs of a specific class $jobsOfClass = RedisQueue::jobs() ->withJobClass(\App\Jobs\SendEmail::class) ->get(); // Custom filters (e.g., displayName LIKE "%SendEmail%") $filtered = RedisQueue::jobs() ->where('displayName', 'like', '%SendEmail%') ->where('job_state', '=', 'Running') ->get();
Query Builder Methods
inQueue(string $queue): Specify the queue name (default:default).withJobState(string $state): Filter by job state (ScheduledorRunning).withJobClass(string $class): Target a specific job class and extract its properties.where(string $field, string $operator, mixed $value): Add a field filter (operators:=andlike).reset(): Reset filters to defaults.get(): Run the query and return anIlluminate\Support\Collectionof jobs.
Each job item in the result collection includes:
job_state:ScheduledorRunning.displayName: Job display name or class name.command: Array of command properties (e.g.,delay).delay_to: Timestamp when the job is scheduled to run.pushed_at:Carboninstance of when the job was pushed.attempts: Number of attempts so far.max_tries: Maximum retries allowed.- Any public/protected/private properties of the job class when using
withJobClass().
Support & Contributing
If you encounter any issues or have questions, please open an issue on the GitHub repository.
Contributions are welcome! Please submit a pull request.
License
The MIT License (MIT). See LICENSE for details.
tvup/redis-job-inspector 适用场景与选型建议
tvup/redis-job-inspector 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 776 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 tvup/redis-job-inspector 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tvup/redis-job-inspector 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 776
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-03