Skip to content

Commit

Permalink
Plumb through :use_error_serialization_v2 from Configuration -> GRPC (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
davehughes committed May 9, 2024
1 parent f075102 commit 34a7e4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/temporal/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def for_connection
port: port,
credentials: credentials,
identity: identity || default_identity,
connection_options: connection_options
connection_options: connection_options.merge(use_error_serialization_v2: @use_error_serialization_v2)
).freeze
end

Expand Down
2 changes: 1 addition & 1 deletion lib/temporal/connection/grpc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def respond_activity_task_completed_by_id(namespace:, activity_id:, workflow_id:
end

def respond_activity_task_failed(namespace:, task_token:, exception:)
serialize_whole_error = Temporal.configuration.use_error_serialization_v2
serialize_whole_error = options.fetch(:use_error_serialization_v2, Temporal.configuration.use_error_serialization_v2)
request = Temporalio::Api::WorkflowService::V1::RespondActivityTaskFailedRequest.new(
namespace: namespace,
identity: identity,
Expand Down

0 comments on commit 34a7e4d

Please sign in to comment.