answear/messenger-heartbeat-bundle
Symfony bundle that adds heartbeat/keepalive support to Messenger workers. Install via Composer and run messenger:consume or messenger:failed:retry with --keepalive to keep long-running workers alive and responsive.
bundles.php edits. Installation is as simple as:
composer require answear/messenger-heartbeat-bundle
followed by enabling --keepalive in worker commands.--keepalive to:
messenger:consume [options] --keepalive
messenger:failed:retry [options] --keepalive
No changes to message handlers, services, or routing are needed.symfony/amqp-messenger and ext-amqp. Ensure these dependencies are actively maintained and compatible with your broker (e.g., RabbitMQ’s PNCTL support).heartbeat parameter) and monitor connection logs for anomalies.connection.last_activity.heartbeat parameter) or third-party monitoring tools (e.g., Prometheus AMQP exporter)?heartbeat parameter) may need tuning.ext-amqp extension. Ensure your runtime environment meets these prerequisites.ext-amqp is installed and compatible with your broker.composer require answear/messenger-heartbeat-bundle
config/bundles.php.--keepalive:
php bin/console messenger:consume [queue] --keepalive
php bin/console messenger:failed:retry [queue] --keepalive
Connection last activity updated) appear in Symfony’s log output.keepalive flag is passed in the command line.args in the container spec to include --keepalive.docker run or docker-compose.--keepalive enabled.connection.last_activity.How can I help you explore Laravel packages today?