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

Add error handling for async produce #186

Open
rnowling-memphis opened this issue Jul 24, 2023 · 0 comments
Open

Add error handling for async produce #186

rnowling-memphis opened this issue Jul 24, 2023 · 0 comments
Assignees
Labels
Feature Request New feature or request

Comments

@rnowling-memphis
Copy link
Contributor

The current implementation for asynchronous production of messages doesn't provide an error handling mechanism. We could provide a callback function through the add_done_callback() method to the tasks that checks the return status and either calls a user provided callback function OR adds the message and error information to a list that the user can check and process.

As part of this, we might to distinguish between recoverable and non-recoverable errors. If we hit a non-recoverable error, we might want to stop producing more messages.

@rnowling-memphis rnowling-memphis added the Feature Request New feature or request label Jul 28, 2023
@rnowling-memphis rnowling-memphis self-assigned this Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant