rqueue icon indicating copy to clipboard operation
rqueue copied to clipboard

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

Open VaclavChalupaS1 opened this issue 1 year ago • 4 comments

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.

VaclavChalupaS1 avatar Jul 24 '24 09:07 VaclavChalupaS1

@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?

sonus21 avatar Jul 26 '24 04:07 sonus21

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

VaclavChalupaS1 avatar Aug 02 '24 06:08 VaclavChalupaS1

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

sonus21 avatar Aug 08 '24 03:08 sonus21

@VaclavChalupaS1 did you get a chance to gather the logs from the application? Also, you can share, how to reproduce this issue.

Thanks

sonus21 avatar Oct 22 '24 17:10 sonus21