A small library to build stable, long-running workers that terminate gracefully when limits are exceeded or a SIGTERM signal is received. Perfect for daemonized console commands running under Docker, Kubernetes, supervisor or systemd, where the process manager restarts the worker after it exits.
- Configurable run, memory and time limits
- Graceful shutdown on SIGTERM
- Extensible via events and custom listeners
- PSR-3 logging of the worker lifecycle
- Plays well with Symfony and Laravel console commands
composer require patchlevel/worker- Documentation
- Related Blog