Skip to main content
Version: 2.4.0

Send heart beats from workers to rs-worker-manager

Introduction​

This section describes how to publish a heart beat event to the rs-worker-manager microservice with an AMQP message.
This message is usually sent from a worker to the rs-worker-manager to indicates it is alive.

AMQP API​

How to​

The Regards AMQP API concept describes how AMQP interfaces must be handled to submit events or to subscribe to events.

Exchange​

Heart beats must be published to the REGARDS RabbitMQ exchange:

Exchange (type topic)Virtual host
regards.worker.manager.heartbeatregards.multitenant.manager

Request content​

Headers​

ParameterTypeDescription
regards.tenantStringThe tenant name depends on the REGARDS instance project configuration.
content_typeStringContent type of the body. Must be set to application/json
Example of the headers of a heartbeat request event message
{
"regards.tenant": "tenant",
"content_type": "application/json"
}

Body​

{
"id": "...",
"type": "...",
"heartBeatDate": "2024-08-02T09:45:10.662619355Z"
}
ParameterTypeDescription
idStringWorker instance identifier
typeStringWorker type
heartBeatDateStringDate and hour of the heart beat, when the worker sent it