Replies: 2 comments 6 replies
-
I see, I do not think you can turn off it completely as per the current code. But what you can do is exclude all the Rqueue auto configs. |
Beta Was this translation helpful? Give feedback.
6 replies
-
I've added a config to disable it using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to disable rqueue by config (application.yml with Springboot) while keeping the dependency in the build.gradle.
I tried to disable every config I have found, but it still tries to connect to Redis.
Is there a way to turn off rqueue fully, without having the remove the library (I want to be able to switch between different methods for pushing job to queues).
So far the only way I have found if to remove the library, but it is not what I want.
Having a property like
rqueue.enabled=true/false
would be perfect.Here a stacktrace:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'reactiveRqueueViewController' defined in URL [jar:file:/Users/afavre/.gradle/caches/modules-2/files-2.1/com.github.sonus21/rqueue-core/2.10.1-RELEASE/c11b74506444b4f542a3ca16ab5a2665d10ad4cb/rqueue-core-2.10.1-RELEASE.jar!/com/github/sonus21/rqueue/web/controller/ReactiveRqueueViewController.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'rqueueViewControllerServiceImpl' defined in URL [jar:file:/Users/afavre/.gradle/caches/modules-2/files-2.1/com.github.sonus21/rqueue-core/2.10.1-RELEASE/c11b74506444b4f542a3ca16ab5a2665d10ad4cb/rqueue-core-2.10.1-RELEASE.jar!/com/github/sonus21/rqueue/web/service/impl/RqueueViewControllerServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rqueueConfig' defined in class path resource [com/github/sonus21/rqueue/spring/boot/RqueueListenerAutoConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.github.sonus21.rqueue.config.RqueueConfig]: Factory method 'rqueueConfig' threw exception; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:64) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:745) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:420) at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1317) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) at com.schedulo.scheduler.ScheduloApplicationKt.main(ScheduloApplication.kt:23) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Beta Was this translation helpful? Give feedback.
All reactions