Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VaclavChalupaS1 opened this issue Jul 24, 2024 · 4 comments
Assignees

Comments

@VaclavChalupaS1
Copy link

VaclavChalupaS1 commented Jul 24, 2024

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
Copy link
Owner

sonus21 commented Jul 26, 2024

@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
Copy link
Author

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

@sonus21
Copy link
Owner

sonus21 commented Aug 8, 2024

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

@sonus21
Copy link
Owner

sonus21 commented Oct 22, 2024

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

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants