-
Notifications
You must be signed in to change notification settings - Fork 52
Add API to get orchestration history #516
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
Conversation
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.
Pull request overview
This PR introduces a new public API method GetOrchestrationHistoryAsync to retrieve orchestration history as a list of HistoryEvent objects. The implementation spans three key areas: adding the base API declaration in DurableTaskClient, implementing the gRPC client logic in GrpcDurableTaskClient, and updating the history event conversion to include failure details in ExecutionCompletedEvent.
Key Changes
- Added virtual method
GetOrchestrationHistoryAsyncto the baseDurableTaskClientclass with comprehensive XML documentation - Implemented the method in
GrpcDurableTaskClientusing streaming gRPC calls with proper error handling - Updated
ExecutionCompletedEventconstruction in ProtoUtils to include failure details as a 4th parameter
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Client/Core/DurableTaskClient.cs | Declares the new virtual GetOrchestrationHistoryAsync method with complete exception documentation; also updates entity-related exception documentation for RewindInstanceAsync |
| src/Client/Grpc/GrpcDurableTaskClient.cs | Implements GetOrchestrationHistoryAsync using streaming gRPC calls with appropriate validation, error handling, and namespace disambiguation for ProtoUtils |
| src/Shared/Grpc/ProtoUtils.cs | Adds FailureDetails parameter to ExecutionCompletedEvent constructor to properly include failure information in history events |
|
@sophiatev I've opened a new pull request, #518, to work on those changes. Once the pull request is ready, I'll request review from you. |
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.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
This PR introduces a new API to get the orchestration history for the
GrpcDurableTaskClient. The server-side implementation of this is implemented in this PR.Note:
I only added this method to the
GrpcDurableTaskClient. In order to add it to theShimDurableTaskClientwe would need to introduce a Newtonsoft.Json dependency to this repo, which as I understand we are trying to avoid.Addresses #419