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

Provide a way to identify operations that should not be retried #226

Merged
merged 1 commit into from
Jan 13, 2024
Merged

Provide a way to identify operations that should not be retried #226

merged 1 commit into from
Jan 13, 2024

Conversation

MattBrittan
Copy link
Contributor

This is an initial solution to issue #214 (the autopaho queue would loop infinitely attempting to resend invalid messages). Further work is needed, but this deals with the main issue.

Ref #214

This is an initial solution to issue #214 (the autopaho queue would loop infinitely attempting
to resend invalid messages). Further work is needed, but this deals with the main issue.

Ref #214
if err := entry.Remove(); err != nil {
c.errors.Printf("error removing queue entry: %s", err)
}
// Need a way to notify the user of this
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think having a callback for PublishViaQueue would be useful so the user can be notified. That same callback could be passed to the call to PublishWithOptions if/when callbacks are added for async published in paho

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed - but I think that can be added at a later date (I think this should be done as part of #216; the idea being that the callback should be called whenever the publish is complete whether successfully or stopped due to error).

@MattBrittan MattBrittan merged commit 2aef8db into eclipse-paho:master Jan 13, 2024
1 check passed
@MattBrittan MattBrittan deleted the Issue214 branch January 14, 2024 21:04
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.

2 participants