Skip to content

Add cause to RespondQueryTaskCompletedRequest #1982

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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
@@ -1822,9 +1822,11 @@ func (wth *workflowTaskHandlerImpl) completeWorkflow(
) 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