incubator-kie-kogito-apps
incubator-kie-kogito-apps copied to clipboard
Improve Jobs Service liveness check to limit the amount of time to get the leader status
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.