incubator-kie-kogito-apps icon indicating copy to clipboard operation
incubator-kie-kogito-apps copied to clipboard

Improve Jobs Service liveness check to limit the amount of time to get the leader status

Open wmedvede opened this issue 8 months ago • 0 comments

Description

Augment the Jobs Service liveness health checks, to consider a configurable amount of time that limits the time to keep retrying to get the leader status.  If leader status can't be obtained in that time, the liveness check will produce a negative report.

Implementation ideas

Add a configuration parameter kogito.jobs-service.management.leader-check.expiration-in-seconds, to set the maximum time the jobs service will wait to get the leader status.  A negative value or zero, means no limit. The default value will be -1.

wmedvede avatar Jun 14 '24 07:06 wmedvede