Skip to content

Commit

Permalink
Merge pull request #45480 from manofthepeace/quartz_deprecated2
Browse files Browse the repository at this point in the history
Minor cleanup in quartz
  • Loading branch information
gsmet authored Jan 9, 2025
2 parents f010b20 + 59ff8fc commit 978ab4c
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public QuartzSchedulerImpl(SchedulerContext context, QuartzSupport quartzSupport
this.schedulerConfig = schedulerConfig;
this.storeType = quartzSupport.getBuildTimeConfig().storeType();

StartMode startMode = initStartMode(schedulerRuntimeConfig);
StartMode startMode = schedulerRuntimeConfig.startMode().orElse(StartMode.NORMAL);

boolean forceStart;
if (startMode != StartMode.NORMAL) {
Expand Down Expand Up @@ -660,14 +660,6 @@ private void putExtensionConfigurationProperties(Properties props, String prefix
});
}

StartMode initStartMode(SchedulerRuntimeConfig schedulerRuntimeConfig) {
if (schedulerRuntimeConfig.startMode().isPresent()) {
return schedulerRuntimeConfig.startMode().get();
} else {
return StartMode.NORMAL;
}
}

private JobBuilder createJobBuilder(String identity, String invokerClassName, boolean noncurrent) {
Class<? extends Job> jobClass = noncurrent ? NonconcurrentInvokerJob.class
: InvokerJob.class;
Expand Down

0 comments on commit 978ab4c

Please sign in to comment.