Skip to content

Commit

Permalink
Conditional on bean name for dgsAsyncTaskExecutor
Browse files Browse the repository at this point in the history
Check for bean name in the conditional for the virtualThreadTaskExecutor. Otherwise it will match on any AsyncTaskExecutor, which comes out of the box with spring.
  • Loading branch information
paulbakker authored Dec 15, 2023
1 parent bbb8d4a commit e9bcbc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ open class DgsAutoConfiguration(
@Bean
@Qualifier("dgsAsyncTaskExecutor")
@ConditionalOnJava21
@ConditionalOnMissingBean
@ConditionalOnMissingBean(name = ["dgsAsyncTaskExecutor"])
@ConditionalOnProperty(name = ["dgs.graphql.virtualthreads.enabled"], havingValue = "true", matchIfMissing = false)
open fun virtualThreadsTaskExecutor(): AsyncTaskExecutor {
LOG.info("Enabling virtual threads for DGS")
Expand Down

0 comments on commit e9bcbc8

Please sign in to comment.