-
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
Update with start #381
Update with start #381
Conversation
} | ||
|
||
using (var activity = ClientSource.StartActivity( | ||
$"UpdateWithStartWorkflow:{input.Options.StartWorkflowOperation.Workflow}", |
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.
@dandavison - note this differs from Go. In Go, this is UpdateWithStartWorkflow:<update-name>
whereas here it is UpdateWithStartWorkflow:<workflow-name>
. This latter behavior matches signal with start in both SDKs (i.e. it's SignalWithStartWorkflow:<workflow-name>
not SignalWithStartWorkflow:<signal-name>
), and of course inbound update does get its own span worker side. Not sure we even properly set tracing in any other update-with-start SDK.
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 didn't see anything missing or out of line with the plan.
@@ -92,6 +92,84 @@ WorkflowHandle<TWorkflow> GetWorkflowHandle<TWorkflow>( | |||
WorkflowHandle<TWorkflow, TResult> GetWorkflowHandle<TWorkflow, TResult>( | |||
string id, string? runId = null, string? firstExecutionRunId = null); | |||
|
|||
/// <summary> | |||
/// Start an update via a call to a WorkflowUpdate attributed method, possibly starting the |
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.
"via a call to a WorkflowUpdate attributed method" means "this will end up causing an update handler method to be executed in a workflow"?
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.
Not exactly. What "via a call" means is that this is a lambda expression that makes a call to a method with the WorkflowUpdate attribute. So it looks like myClient.StartUpdateWithStartWorkflow((MyWorkflow wf) => wf.MyUpdateMethodWithAttribute(myArg), ...
.
What was changed
Added
StartUpdateWithStartWorkflowAsync
andExecuteUpdateWithStartWorkflowAsync
client calls and all that entails. Marked as experimental.Checklist