Skip to content

Quartz Scheduler name not set by the spring.quartz.properties.org.quartz.scheduler.instanceName property #14243

@davem-foreflight

Description

@davem-foreflight

Summary:

The spring boot QuartzProperties configuration property: spring.quartz.properties.org.quartz.scheduler.instanceName Is not picked up when the quartz factory is created resulting in the quartz scheduler having the beanName as the scheduler name.

Possible Fix

Perhaps QuartzAutoConfiguration could be enhanced to look for the StdSchedulerFactory properties utilized by the SchedulerFactoryBean initSchedulerFactory() method.

OR

QuartzProperties could simply add a property schedularName that would be applied to the new factory rather then relying on the properties.

Workaround

Implement SchedulerFactoryBeanCustomizer and set the name via the customize() method.

More Details

Issue has been raised in: https://jira.spring.io/browse/SPR-16884

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions