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

Catch errors from event driver publish retries #1264

Merged
merged 9 commits into from
Oct 17, 2024
Merged

Catch errors from event driver publish retries #1264

merged 9 commits into from
Oct 17, 2024

Conversation

vachillo
Copy link
Member

@vachillo vachillo commented Oct 16, 2024

Describe your changes

The error statement was always getting logged, regardless of success or failure

Issue ticket number and link


📚 Documentation preview 📚: https://griptape--1264.org.readthedocs.build//1264/

@vachillo vachillo requested a review from collindutter October 16, 2024 14:10
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@vachillo vachillo changed the title Return after successful event publish Catch errors from event driver publish retries Oct 16, 2024
CHANGELOG.md Outdated
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Structures not flushing events when not listening for `FinishStructureRunEvent`.
- `EventListener.event_types` and the argument to `BaseEventListenerDriver.handler` being out of sync.
- Methods `_safe_publish_event_payload` and `_safe_publish_event_payload_batch` on `BaseEventListenerDriver` not catching exceptions after failed retries.
Copy link
Member

Choose a reason for hiding this comment

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

This is unreleased, don't need to mention this fix.

collindutter
collindutter previously approved these changes Oct 16, 2024
Copy link
Member

@collindutter collindutter left a comment

Choose a reason for hiding this comment

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

Approved once changelog is updated

@collindutter collindutter merged commit 829456b into dev Oct 17, 2024
15 checks passed
@collindutter collindutter deleted the event_fix branch October 17, 2024 00:31
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