Worker

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.

It was extracted from the event-sourcing library into a separate package.

Features

Installation

composer require patchlevel/worker

Start with the getting started guide to get a feeling for the library.