jackbayliss / laravel-queue-peek
A read-only Artisan command to peek at jobs sitting in your Laravel queues.
Fund package maintenance!
Requires
- php: ^8.4
- illuminate/contracts: ^13.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^11.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
README
A read-only Artisan command to peek at jobs sitting in your Laravel queues. No tinker, no application needed.
Requirements
This package relies on the queue inspection methods (pendingJobs, delayedJobs, reservedJobs) introduced in Laravel 13, so it only supports Laravel 13+.
Installation
You can install the package via composer:
composer require jackbayliss/laravel-queue-peek
Usage
php artisan queue:peek
By default this peeks at the pending jobs on the default queue connection. You can customise the connection, queue, state, and output:
php artisan queue:peek redis --queue=high --state=delayed --limit=10 --json
| Option | Description |
|---|---|
connection |
The queue connection to inspect (defaults to queue.default). |
--queue |
The name of the queue to inspect. |
--state |
One of pending, delayed, or reserved (default: pending). |
--limit |
The maximum number of jobs to display (default: 25). |
--json |
Output the jobs as JSON. |
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.