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 HandlerErrorRetryBehavior #551

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

bergundy
Copy link
Member

@bergundy bergundy commented Feb 6, 2025

No description provided.

@bergundy bergundy requested review from a team as code owners February 6, 2025 00:02
@bergundy bergundy changed the title Nexus error tweaks Add HandlerErrorRetryBehavior Feb 6, 2025
// HandlerErrorRetryBehavior allows handlers to explicity set the retry behavior of a HandlerError. If not specified,
// retry behavior is determined from the error type. For example internal errors are not retryable by default unless
// specified otherwise.
enum HandlerErrorRetryBehavior {
Copy link
Member

Choose a reason for hiding this comment

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

Should this be in enums like all other enums in this project?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, you're right, I checked, all other enums are there. I don't love spreading related definitions out like that but I understand the argument for consistency.

@bergundy bergundy requested a review from cretz February 6, 2025 15:00
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

I note this is merging to master and not a feature branch. I trust the implementation and design is far enough along that we don't expect incompatible changes to this.

@bergundy
Copy link
Member Author

bergundy commented Feb 6, 2025

Yes, there is a corresponding server and Go SDK PR (Java is waiting on this too).

@bergundy bergundy merged commit 6795d69 into temporalio:master Feb 6, 2025
3 checks passed
@bergundy bergundy deleted the nexus-error-tweaks branch February 6, 2025 16:54
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.

4 participants