-
Notifications
You must be signed in to change notification settings - Fork 52
Partial orchestration workitem completion support (Merge after next dts dp release) #514
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
Open
YunchuWang
wants to merge
36
commits into
main
Choose a base branch
from
wangbill/autochunk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
ff00cbc
Partial orchestration workitem completion support
YunchuWang 7d432ca
add tests
YunchuWang b206ec3
Update src/Worker/Grpc/GrpcDurableTaskWorker.Processor.cs
YunchuWang 168e2f0
Update src/Worker/Grpc/GrpcDurableTaskWorker.Processor.cs
YunchuWang 95013b7
Update src/InProcessTestHost/Sidecar/Grpc/TaskHubGrpcServer.cs
YunchuWang ffc7b7b
Merge branch 'main' into wangbill/autochunk
YunchuWang 989f89d
feedback
YunchuWang 87d7f95
update tests
YunchuWang 5448636
test update
YunchuWang 9ddc213
increase test timeout
YunchuWang a5b778c
save
YunchuWang 4ffe575
make orchestration fail is single action oversized
YunchuWang c4b8341
advise
YunchuWang fa0d2c9
todo
YunchuWang f480c3f
Merge branch 'main' into wangbill/autochunk
YunchuWang 6517fcd
Merge branch 'main' into wangbill/autochunk
YunchuWang e76982a
Update src/Worker/Grpc/GrpcDurableTaskWorker.Processor.cs
YunchuWang 53b2284
Update src/Worker/Grpc/GrpcDurableTaskWorkerOptions.cs
YunchuWang eb09564
feedback
YunchuWang d8f939a
Merge branch 'wangbill/autochunk' of https://github.com/microsoft/dur…
YunchuWang e3b86cc
remove still in first chunk
YunchuWang f73b5d4
Update src/Worker/Grpc/GrpcDurableTaskWorkerOptions.cs
YunchuWang 27a40e1
Merge branch 'main' into wangbill/autochunk
YunchuWang 6079088
feedback
YunchuWang e97b329
Merge branch 'main' into wangbill/autochunk
YunchuWang 2ed8160
rename
YunchuWang b67e4a1
exclude baserequest from chunk filling
YunchuWang 7b349df
Merge branch 'main' into wangbill/autochunk
YunchuWang 395be15
feedback
YunchuWang ae33892
Merge branch 'wangbill/autochunk' of https://github.com/microsoft/dur…
YunchuWang fccdc13
Merge branch 'main' into wangbill/autochunk
YunchuWang deffc05
Update src/Worker/Grpc/GrpcDurableTaskWorkerOptions.cs
YunchuWang cd062a9
Merge branch 'wangbill/autochunk' of https://github.com/microsoft/dur…
YunchuWang 3065a09
update proto
YunchuWang 3d01238
Merge branch 'main' into wangbill/autochunk
YunchuWang 0cc7b1d
Merge branch 'wangbill/autochunk' of https://github.com/microsoft/dur…
YunchuWang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
samples/ScheduleWebApp/Orchestrations/CacheClearingOrchestratorV2.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using Microsoft.DurableTask; | ||
| using ScheduleWebApp.Activities; | ||
|
|
||
| namespace ScheduleWebApp.Orchestrations; | ||
|
|
||
| public class CacheClearingOrchestratorV2 : TaskOrchestrator<string, string> | ||
| { | ||
| public override async Task<string> RunAsync(TaskOrchestrationContext context, string scheduleId) | ||
| { | ||
| ILogger logger = context.CreateReplaySafeLogger(nameof(CacheClearingOrchestratorV2)); | ||
| try | ||
| { | ||
| logger.LogInformation("Starting CacheClearingOrchestration for schedule ID: {ScheduleId}", scheduleId); | ||
|
|
||
| TaskOptions options = new TaskOptions(tags: new Dictionary<string, string> | ||
| { | ||
| { "scheduleId", scheduleId } | ||
| }); | ||
|
|
||
| // Schedule all activities first to ensure deterministic ordering | ||
| Task<string>[] tasks = Enumerable.Range(0, 100) | ||
| .Select(i => context.CallActivityAsync<string>(nameof(CacheClearingActivity), new string('A', 4 * 1024), options)) | ||
| .ToArray(); | ||
|
|
||
| await Task.WhenAll(tasks); | ||
|
|
||
| logger.LogInformation("CacheClearingOrchestration completed for schedule ID: {ScheduleId}", scheduleId); | ||
|
|
||
| return "ok"; | ||
| } | ||
| catch (Exception ex) | ||
| { | ||
| logger.LogError(ex, "Error in CacheClearingOrchestration for schedule ID: {ScheduleId}", scheduleId); | ||
| throw; | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| # The following files were downloaded from branch main at 2025-11-14 16:36:47 UTC | ||
| # The following files were downloaded from branch main at 2025-11-25 20:53:40 UTC | ||
| https://raw.githubusercontent.com/microsoft/durabletask-protobuf/9f762f1301b91e3e7c736b9c5a29c2e09f2a850e/protos/orchestrator_service.proto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.