Skip to content

Commit

Permalink
ScheduledExecutorService should be conditional on missing bean by name
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbakker committed Nov 29, 2023
1 parent e467d7b commit 173cd06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ open class DgsAutoConfiguration(
}

@Bean(destroyMethod = "shutdown")
@ConditionalOnMissingBean
@ConditionalOnMissingBean(name = ["dgsScheduledExecutorService"])
@Qualifier("dgsScheduledExecutorService")
open fun dgsScheduledExecutorService(): ScheduledExecutorService {
return Executors.newSingleThreadScheduledExecutor()
Expand Down

0 comments on commit 173cd06

Please sign in to comment.