-
Notifications
You must be signed in to change notification settings - Fork 4
feat: Add taskExecutionId field #13
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
feat: Add taskExecutionId field #13
Conversation
2fff5c0
to
dc81024
Compare
@@ -24,6 +24,7 @@ message ActivityRequest { | |||
OrchestrationInstance orchestrationInstance = 4; | |||
int32 taskId = 5; | |||
TraceContext parentTraceContext = 6; | |||
string taskExecutionId = 7; |
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.
What value is to be expected here and by who?
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 value is used to propagate the taskExecutionId from the scheduled task to the worker to build the context
https://github.com/dapr/durabletask-go/blob/28ab9ebfa7bb2f1d6d0237b5d2ce60b6be712e2b/backend/executor.go#L161 and https://github.com/dapr/durabletask-go/blob/28ab9ebfa7bb2f1d6d0237b5d2ce60b6be712e2b/client/worker_grpc.go#L187
Signed-off-by: Javier Aliaga <javier@diagrid.io>
Signed-off-by: Javier Aliaga <javier@diagrid.io>
Signed-off-by: Javier Aliaga <javier@diagrid.io>
ae268b0
to
b9c1975
Compare
b9c1975
to
ecfd5c8
Compare
Add
taskExecutionId
to provide a unique identifier for task executions. ThetaskExecutionId
will remain the same between retries but will be different on reruns.The field has been added to:
ActivityRequest
TaskScheduledEvent
TaskCompletedEvent
TaskFailedEvent
ScheduleTaskAction
Value is not optional but defaults to empty.
This pr is part of this proposal