Package io.kestra.jdbc.runner
Class JdbcServiceLivenessCoordinator
java.lang.Object
io.kestra.core.server.AbstractServiceLivenessTask
io.kestra.core.server.AbstractServiceLivenessCoordinator
io.kestra.jdbc.runner.JdbcServiceLivenessCoordinator
- All Implemented Interfaces:
AutoCloseable,Runnable
@Singleton
@JdbcRunnerEnabled
@Requires(property="kestra.server-type",
pattern="(EXECUTOR|STANDALONE)")
public final class JdbcServiceLivenessCoordinator
extends io.kestra.core.server.AbstractServiceLivenessCoordinator
Responsible for coordinating the state of all service instances.
- See Also:
-
Field Summary
Fields inherited from class io.kestra.core.server.AbstractServiceLivenessCoordinator
DEFAULT_REASON_FOR_DISCONNECTED, DEFAULT_REASON_FOR_NOT_RUNNING, serverIdFields inherited from class io.kestra.core.server.AbstractServiceLivenessTask
serverConfig -
Constructor Summary
ConstructorsConstructorDescriptionJdbcServiceLivenessCoordinator(AbstractJdbcServiceInstanceRepository serviceInstanceRepository, io.kestra.core.server.ServerConfig serverConfig) Creates a newJdbcServiceLivenessCoordinatorinstance. -
Method Summary
Methods inherited from class io.kestra.core.server.AbstractServiceLivenessCoordinator
filterAllNonRespondingServices, getScheduleInterval, mayDetectAndLogNewConnectedServices, safelyTransitionServiceToMethods inherited from class io.kestra.core.server.AbstractServiceLivenessTask
close, getElapsedMilliSinceLastSchedule, isLivenessEnabled, lastScheduledExecution, run, run, start
-
Constructor Details
-
JdbcServiceLivenessCoordinator
@Inject public JdbcServiceLivenessCoordinator(AbstractJdbcServiceInstanceRepository serviceInstanceRepository, io.kestra.core.server.ServerConfig serverConfig) Creates a newJdbcServiceLivenessCoordinatorinstance.- Parameters:
serviceInstanceRepository- TheAbstractJdbcServiceInstanceRepository.serverConfig- The server liveness configuration.
-
-
Method Details
-
onSchedule
- Specified by:
onSchedulein classio.kestra.core.server.AbstractServiceLivenessTask
-