illuma-law / healthcheck-operations
Focused operations backlog health check for Spatie's Laravel Health package.
Package info
github.com/eloquage/healthcheck-operations
Language:Blade
pkg:composer/illuma-law/healthcheck-operations
Fund package maintenance!
Requires
- php: ^8.3
- illuminate/contracts: ^12.0||^13.0
- illuminate/database: ^12.0||^13.0
- illuminate/support: ^12.0||^13.0
- spatie/laravel-health: ^1.39
- spatie/laravel-package-tools: ^1.16
- timokoerber/laravel-one-time-operations: ^1.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- mrpunyapal/peststan: ^0.2.12
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.1||^11.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
- spatie/laravel-ray: ^1.35
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-23 13:54:27 UTC
README
A Spatie Laravel Health check for pending Laravel One-Time Operations. It reports the queue size, oldest operation age, and a sample of filenames.
Requirements
- PHP 8.3 or later
- Laravel 12 or 13
spatie/laravel-health1.39 or latertimokoerber/laravel-one-time-operations1.x
Installation
composer require illuma-law/healthcheck-operations
Laravel discovers the service provider automatically. Publish the configuration to choose whether an old backlog should fail:
php artisan vendor:publish --tag=healthcheck-operations-config
Pending operations warn by default. Set HEALTH_OPERATIONS_REQUIRED=true to fail when the oldest operation has been waiting for at least 24 hours. If the package cannot read the operation backlog, the check fails.
Usage
Register the check in your health service provider:
use IllumaLaw\HealthCheckOperations\OperationsBacklogCheck; use Spatie\Health\Facades\Health; Health::checks([ OperationsBacklogCheck::new(), ]);
No pending operations returns OK. Pending operations return Warning by default; a backlog at least 24 hours old returns Failed when the required setting is enabled.
Testing
composer test
composer analyse
vendor/bin/pint --test
License
MIT. See LICENSE.md.
