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

Converted WorkflowExecutionAlreadyStartedFailure handling to use RPC status #144

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cvanderschuere
Copy link
Contributor

We ran into a condition where the error message changed slightly and we were unable to extract the Run ID. This changes moves to start using the RPC error in a similar way to the Go SDK.

Copy link
Contributor

@antstorm antstorm left a comment

Choose a reason for hiding this comment

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

Thank you for the PR, @cvanderschuere ! Few small comments, but overall looks great 👍

lib/temporal/connection/grpc.rb Outdated Show resolved Hide resolved
lib/temporal/connection/grpc.rb Outdated Show resolved Hide resolved
spec/unit/lib/temporal/grpc_client_spec.rb Show resolved Hide resolved
Copy link
Contributor

@antstorm antstorm left a comment

Choose a reason for hiding this comment

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

Looks great! One last thing — can you please add a spec for raising Temporal::ApiError? It seems to be a new behaviour and we'd like a test for it

@cvanderschuere
Copy link
Contributor Author

@antstorm this should be ready for another review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants