<<

NAME

ProductOpener::Minion - functions to integrate with minion

DESCRIPTION

ProductOpener::Minion is handling pushing info to Redis to communicate updates to all services, including search-a-licious, as well as receiving updates from other services like Keycloak.

get_minion()

Function to get the backend minion

Arguments

None

Return values

The backend minion $minion

perform_health_check()

Execute a component health check and return a health-check result object.

This sub documents the expected interface for health checks used by ProductOpener::APIHealth. Implementations should perform one focused check and return an array reference of check objects compatible with https://inadarei.github.io/rfc-healthcheck/.

Each check object in the returned array reference must include:

Additional RFC fields (for example componentType, time, observedValue, observedUnit and links) may be included when relevant. If componentId is included, it should be a stable UUID.

The sub should not die. If an internal error occurs, return one check object with status => 'fail' and a meaningful output message.

<<