Skip to content

Conversation

yuandrew
Copy link
Contributor

What was changed

Support adding Cause to RespondQueryTaskCompletedRequest

Need to wait for next api-go release before merging

Why?

API change

Checklist

  1. Closes [go] Add WorkflowTaskFailedCause to RespondQueryTaskCompletedRequest #1971

  2. How was this tested:

@yuandrew yuandrew requested a review from a team as a code owner June 20, 2025 20:21
) interface{} {
// for query task
if task.Query != nil {
cause := errToWorkflowTaskFailedCause(workflowContext.err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: To test you might want to use a gRPC interceptor to verify the cause is sent since it won't be written to history

@yuandrew yuandrew marked this pull request as draft July 11, 2025 20:29
@yuandrew
Copy link
Contributor Author

Marking as draft, this code path is currently impossible to exercise

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.

[go] Add WorkflowTaskFailedCause to RespondQueryTaskCompletedRequest

2 participants