Package io.kestra.jdbc.runner
Class JdbcExecutor
java.lang.Object
io.kestra.jdbc.runner.JdbcExecutor
- All Implemented Interfaces:
io.kestra.core.runners.ExecutorInterface,io.kestra.core.server.Service,Closeable,AutoCloseable,Runnable
@Singleton
@JdbcRunnerEnabled
public class JdbcExecutor
extends Object
implements io.kestra.core.runners.ExecutorInterface, io.kestra.core.server.Service
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.kestra.core.server.Service
io.kestra.core.server.Service.ServiceState, io.kestra.core.server.Service.ServiceType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<io.kestra.core.models.flows.Flow> protected io.kestra.core.services.FlowListenersInterfaceprotected io.kestra.core.queues.QueueInterface<io.kestra.core.models.executions.ExecutionKilled> -
Constructor Summary
ConstructorsConstructorDescriptionJdbcExecutor(JdbcServiceLivenessCoordinator serviceLivenessCoordinator, io.kestra.core.repositories.FlowRepositoryInterface flowRepository, AbstractJdbcFlowTopologyRepository flowTopologyRepository, io.micronaut.context.event.ApplicationEventPublisher<io.kestra.core.server.ServiceStateChangeEvent> eventPublisher) Creates a newJdbcExecutorinstance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.server.Service
getMetrics, skipGracefulTermination, unwrap
-
Field Details
-
killQueue
@Inject @Named("executionKilledQueue") protected io.kestra.core.queues.QueueInterface<io.kestra.core.models.executions.ExecutionKilled> killQueue -
flowListeners
@Inject protected io.kestra.core.services.FlowListenersInterface flowListeners -
allFlows
-
-
Constructor Details
-
JdbcExecutor
@Inject public JdbcExecutor(@Nullable JdbcServiceLivenessCoordinator serviceLivenessCoordinator, io.kestra.core.repositories.FlowRepositoryInterface flowRepository, AbstractJdbcFlowTopologyRepository flowTopologyRepository, io.micronaut.context.event.ApplicationEventPublisher<io.kestra.core.server.ServiceStateChangeEvent> eventPublisher) Creates a newJdbcExecutorinstance. Both constructor and field injection are used to force Micronaut to respect order when invoking pre-destroy order.- Parameters:
serviceLivenessCoordinator- TheJdbcServiceLivenessCoordinator.flowRepository- TheFlowRepositoryInterface.flowTopologyRepository- TheAbstractJdbcFlowTopologyRepository.eventPublisher- TheApplicationEventPublisher.
-
-
Method Details
-
run
public void run() -
close
@PreDestroy public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceio.kestra.core.server.Service
-
getId
- Specified by:
getIdin interfaceio.kestra.core.server.Service
-
getType
public io.kestra.core.server.Service.ServiceType getType()- Specified by:
getTypein interfaceio.kestra.core.server.Service
-
getState
public io.kestra.core.server.Service.ServiceState getState()- Specified by:
getStatein interfaceio.kestra.core.server.Service
-