Skip to content

AMQP consumer needs better error messages/handling #1407

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

Open
reidsunderland opened this issue Mar 21, 2025 · 0 comments
Open

AMQP consumer needs better error messages/handling #1407

reidsunderland opened this issue Mar 21, 2025 · 0 comments
Assignees
Labels
harmless log log messages inscrutable

Comments

@reidsunderland
Copy link
Member

2025-03-21 14:36:39,146 [INFO] sarracenia.moth.amqpconsumer getSetup registered consumer with tag amq.ctag-JPVd8Za4mTSLWzXAAMK2CA
2025-03-21 14:36:39,146 [WARNING] sarracenia.moth.amqpconsumer getNewMessage failed q_feeder.sarra.fdsa: 'NoneType' object has no attribute 'drain_events'

It doesn't cause a crash but we shouldn't attempt to call drain_events when self.connection is none:

if not self.connection:
self.getSetup()
# trigger incoming event processing
try:
self.connection.drain_events(timeout=0.1) # TODO configurable timeout?

I think previously getSetup would block while it slept and retried, but that has been changed. I need to check if getSetup failed.

@reidsunderland reidsunderland added harmless log log messages inscrutable labels Mar 21, 2025
@reidsunderland reidsunderland self-assigned this Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
harmless log log messages inscrutable
Projects
None yet
Development

No branches or pull requests

1 participant