sonus21 / rqueue

Rqueue aka Redis Queue [Task Queue, Message Broker] for Spring framework
https://sonus21.github.io/rqueue
Apache License 2.0
337 stars 57 forks source link

Stop accepting message in @RqueueListener when spring boot graceful shutdown initiated #237

Open VaclavChalupaS1 opened 2 months ago

VaclavChalupaS1 commented 2 months ago

Hi, is there any possibility to stop accepting new and new messages by @RqueueListener when graceful shutdown is initiated? Currently, it is accepting messages till the lifecycle shutdown period and then it is waiting for currently executed tasks to be finished.

Thanks.

sonus21 commented 2 months ago

@VaclavChalupaS1 it should get shutdown asap, whenever container's stop method is called, post that it should not accept any new messages. Do you have any logs which suggest otherway around?

VaclavChalupaS1 commented 2 months ago

We can see from our logs that listeners are still accepting tasks during the shutdown period. I will try to create some reproducer.

sonus21 commented 1 month ago

@VaclavChalupaS1 please share the logs if you've..