Skip to content

Wrap message processing block in try/catch statement#58

Merged
rudokemper merged 1 commit into
mainfrom
handle-error-in-processing-message
Jul 11, 2024
Merged

Wrap message processing block in try/catch statement#58
rudokemper merged 1 commit into
mainfrom
handle-error-in-processing-message

Conversation

@rudokemper
Copy link
Copy Markdown
Member

Closes #57.

Goal

To handle edge cases where there is an issue decoding and parsing the incoming message; in such cases, the message would be stuck in a phantom state as they would not be deleted by the worker.

What I changed

Wrap the entire message processing code in a try/catch block, with errors being logged and the message being deleted from the queue.

@rudokemper rudokemper merged commit 263ea93 into main Jul 11, 2024
@rudokemper rudokemper deleted the handle-error-in-processing-message branch July 11, 2024 19:40
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

Successfully merging this pull request may close these issues.

[ASQ] Improve worker application flow to handle invalid map requests

1 participant