Download the PHP package tvup/redis-job-inspector without Composer
On this page you can find all versions of the php package tvup/redis-job-inspector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tvup/redis-job-inspector
More information about tvup/redis-job-inspector
Files in tvup/redis-job-inspector
Package redis-job-inspector
Short Description Inspect Laravel Redis queue jobs like Eloquent
License MIT
Informations about the package redis-job-inspector
Redis Job Inspector
Inspect Laravel Redis queue jobs using an Eloquent-like query builder.
Installation
Install via Composer:
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:
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.