use of eu.bcvsolutions.idm.core.scheduler.api.service.SchedulerManager in project CzechIdMng by bcvsolutions.
the class SchedulerConfig method schedulerManager.
@DependsOn(CoreFlywayConfig.NAME)
@Bean(name = "schedulerManager")
public SchedulerManager schedulerManager(ApplicationContext context, IdmDependentTaskTriggerRepository dependentTaskTriggerRepository) {
SchedulerManager manager = new DefaultSchedulerManager(context, schedulerFactoryBean(context).getScheduler(), dependentTaskTriggerRepository);
// read all task - checks obsolete task types and remove them before scheduler starts automatically
manager.getAllTasks();
//
return manager;
}
Aggregations