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:
  • ServiceInstance
  • Field Summary

    Fields inherited from class io.kestra.core.server.AbstractServiceLivenessCoordinator

    DEFAULT_REASON_FOR_DISCONNECTED, DEFAULT_REASON_FOR_NOT_RUNNING, serverId

    Fields inherited from class io.kestra.core.server.AbstractServiceLivenessTask

    serverConfig
  • Constructor Summary

    Constructors
    Constructor
    Description
    JdbcServiceLivenessCoordinator(AbstractJdbcServiceInstanceRepository serviceInstanceRepository, io.kestra.core.server.ServerConfig serverConfig)
    Creates a new JdbcServiceLivenessCoordinator instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void

    Methods inherited from class io.kestra.core.server.AbstractServiceLivenessCoordinator

    filterAllNonRespondingServices, getScheduleInterval, mayDetectAndLogNewConnectedServices, safelyTransitionServiceTo

    Methods inherited from class io.kestra.core.server.AbstractServiceLivenessTask

    close, getElapsedMilliSinceLastSchedule, isLivenessEnabled, lastScheduledExecution, run, run, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • onSchedule

      protected void onSchedule(Instant now)
      Specified by:
      onSchedule in class io.kestra.core.server.AbstractServiceLivenessTask