Class SchedulingConfiguration

java.lang.Object
fr.enedis.chutney.SchedulingConfiguration
All Implemented Interfaces:
org.springframework.scheduling.annotation.AsyncConfigurer

@Configuration @EnableScheduling @EnableAsync public class SchedulingConfiguration extends Object implements org.springframework.scheduling.annotation.AsyncConfigurer
  • Constructor Details

    • SchedulingConfiguration

      public SchedulingConfiguration()
  • Method Details

    • getAsyncUncaughtExceptionHandler

      public org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
      Specified by:
      getAsyncUncaughtExceptionHandler in interface org.springframework.scheduling.annotation.AsyncConfigurer
    • taskScheduler

      @Bean public org.springframework.scheduling.TaskScheduler taskScheduler()
    • applicationTaskExecutor

      @Bean public org.springframework.core.task.TaskExecutor applicationTaskExecutor(org.springframework.boot.task.ThreadPoolTaskExecutorBuilder builder)
      Default task executor for @Async (used for SSE for example) With a default with default configuration: org.springframework.boot.autoconfigure.task.TaskExecutionProperties.Pool
    • scheduleCampaignsExecutor

      @Bean public org.springframework.core.task.TaskExecutor scheduleCampaignsExecutor()
      See Also:
    • scheduledCampaignsExecutor

      @Bean public ExecutorService scheduledCampaignsExecutor(@Value("${chutney.server.schedule-campaigns.executor.pool-size:20}") Integer threadForScheduledCampaigns)
      See Also:
    • purgeService

      @Bean public PurgeService purgeService(TestCaseRepository testCaseRepository, ExecutionHistoryRepository executionRepository, CampaignRepository campaignRepository, CampaignExecutionRepository campaignExecutionRepository, @Value("${chutney.server.schedule-purge.max-scenario-executions:10}") Integer maxScenarioExecutionsConfig, @Value("${chutney.server.schedule-purge.max-campaign-executions:10}") Integer maxCampaignExecutionsConfig)