-
Notifications
You must be signed in to change notification settings - Fork 33
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
Minor update fixes #382
Minor update fixes #382
Conversation
@@ -462,7 +472,7 @@ public async override Task<WorkflowUpdateHandle<TResult>> StartWorkflowUpdateAsy | |||
// If the requested stage is completed, wait for result, but discard the update | |||
// exception, that will come when _they_ call get result | |||
var handle = new WorkflowUpdateHandle<TResult>( | |||
Client, req.Request.Meta.UpdateId, input.Id, input.RunId) | |||
Client, req.Request.Meta.UpdateId, input.Id, resp.UpdateRef.WorkflowExecution.RunId) |
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.
We should really add a test for this. (I know the other fix is hard to test).
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.
Added assertion to existing test that would have failed before (basically just ensures run ID now exists, because it was null before)
var grpcStatus = new GrpcStatus() { Code = nonAborted.Code, Message = nonAborted.Message }; | ||
grpcStatus.Details.AddRange(nonAborted.Details); | ||
e = new RpcException(grpcStatus); | ||
var nonAborted = failure.Statuses.FirstOrDefault(s => |
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.
variable name could be failureStatus
or something, but not blocking.
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.
LGTM. I'm going to try to add a test for the run ID issue in Python.
What was changed