-
Notifications
You must be signed in to change notification settings - Fork 1.2k
RespondWorkflowTaskCompleted returns error on bad commands #655
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
Changes from 13 commits
577f883
d040f9e
9212b8f
b77493c
f564610
d4365ae
23447ce
19d613e
9928872
1c5d78f
463b94d
5f864bc
72a5db0
05f3b6b
ba63769
5f5680b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,6 @@ import ( | |
| "github.com/pborman/uuid" | ||
| commonpb "go.temporal.io/api/common/v1" | ||
| enumspb "go.temporal.io/api/enums/v1" | ||
| failurepb "go.temporal.io/api/failure/v1" | ||
| historypb "go.temporal.io/api/history/v1" | ||
| querypb "go.temporal.io/api/query/v1" | ||
| "go.temporal.io/api/serviceerror" | ||
|
|
@@ -58,6 +57,7 @@ import ( | |
| "go.temporal.io/server/common/clock" | ||
| "go.temporal.io/server/common/cluster" | ||
| "go.temporal.io/server/common/definition" | ||
| "go.temporal.io/server/common/failure" | ||
| "go.temporal.io/server/common/headers" | ||
| "go.temporal.io/server/common/log" | ||
| "go.temporal.io/server/common/log/tag" | ||
|
|
@@ -2548,8 +2548,7 @@ func (e *historyEngineImpl) failWorkflowTask( | |
| context workflowExecutionContext, | ||
| scheduleID int64, | ||
| startedID int64, | ||
| cause enumspb.WorkflowTaskFailedCause, | ||
| failure *failurepb.Failure, | ||
| workflowTaskFailedErr *workflowTaskFailedError, | ||
| request *workflowservice.RespondWorkflowTaskCompletedRequest, | ||
| ) (mutableState, error) { | ||
|
|
||
|
|
@@ -2563,7 +2562,7 @@ func (e *historyEngineImpl) failWorkflowTask( | |
| } | ||
|
|
||
| if _, err = mutableState.AddWorkflowTaskFailedEvent( | ||
| scheduleID, startedID, cause, failure, request.GetIdentity(), request.GetBinaryChecksum(), "", "", 0, | ||
| scheduleID, startedID, workflowTaskFailedErr.failedCause, failure.NewServerFailure(workflowTaskFailedErr.Error(), true), request.GetIdentity(), request.GetBinaryChecksum(), "", "", 0, | ||
|
||
| ); err != nil { | ||
| return nil, err | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is 🤦. With new handler logic, I was able to catch it.