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

basic.reject messages if the worker is busy #448

Open
jeanetteclark opened this issue Jul 24, 2024 · 0 comments
Open

basic.reject messages if the worker is busy #448

jeanetteclark opened this issue Jul 24, 2024 · 0 comments
Labels

Comments

@jeanetteclark
Copy link
Collaborator

Currently, we have an early basic.ack which runs before the processReport method. We thought that this was working pretty well, but realized recently (see dataone-indexer 118) that is is likely the timeout issues we still occasionally see are coming up because rabbitmq sends another message as soon as the previous one was acked, thus starting the timeout timer again.

Ideally, the worker would reject messages that come when it isn't ready. We can use threads where one thread is either accepting or rejecting messages based on whether the second thread is alive.

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

No branches or pull requests

1 participant