-
Notifications
You must be signed in to change notification settings - Fork 56
Changing the default dedupe statuses behavior #622
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
8357e15
first commit?
b434062
PR comments
b8fc30b
Merge branch 'main' into stevosyan/remove-default-dedupe-statuses
c54e0cb
updating documentation
47bcb33
Merge branch 'main' into stevosyan/remove-default-dedupe-statuses
d8c26b3
added implementation to shim client too
64c3ba9
added tests for the shim client
796f522
PR comments
87a9bec
reverted the logic to not include a reuse policy in the case that ded…
b6c7145
updating the tests accordingly
02b2427
PR comments
dedcf9e
addressing PR comments
0b9a89e
Merge branch 'main' into stevosyan/remove-default-dedupe-statuses
098d9a3
updated tests to check for new exception type
c10c1bf
slight comment update
212d1aa
Adding an ArgumentException for invalid dedupe statuses (any running …
acddee1
added support to terminate existing running instances for restart
68d84a3
addressing copilot comments
edf3564
addressing the PR comments and build warnings
50b4ee9
Merge branch 'main' into stevosyan/remove-default-dedupe-statuses
6eb7b51
fixed the build errors
e600a5a
missed a change in comment type in GrpcDurableTaskClient
bf426ec
missed updating a comment in the tests
50e42d3
returned the catching of the RpcException with status code cancelled,…
820d069
Merge branch 'main' into stevosyan/remove-default-dedupe-statuses
sophiatev 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
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 |
|---|---|---|
|
|
@@ -73,10 +73,11 @@ | |
| /// <remarks> | ||
| /// <para>All orchestrations must have a unique instance ID. You can provide an instance ID using the | ||
| /// <paramref name="options"/> parameter or you can omit this and a random instance ID will be | ||
| /// generated for you automatically. If an orchestration with the specified instance ID already exists and is in a | ||
| /// non-terminal state (Pending, Running, etc.), then this operation may fail silently. However, if an orchestration | ||
| /// instance with this ID already exists in a terminal state (Completed, Terminated, Failed, etc.) then the instance | ||
| /// may be recreated automatically, depending on the configuration of the backend instance store. | ||
| /// generated for you automatically. If an orchestration with the specified instance ID already exists and its status | ||
| /// is not in the <see cref="StartOrchestrationOptions.DedupeStatuses"/> field of <paramref name="options"/>, then | ||
| /// a new orchestration may be recreated automatically, depending on the configuration of the backend instance store. | ||
| /// If the existing orchestration is in a non-terminal state (Pending, Running, etc.), then the orchestration will first | ||
| /// be terminated before the new orchestration is created. | ||
|
sophiatev marked this conversation as resolved.
|
||
| /// </para><para> | ||
|
sophiatev marked this conversation as resolved.
|
||
| /// Orchestration instances started with this method will be created in the | ||
| /// <see cref="OrchestrationRuntimeStatus.Pending"/> state and will transition to the | ||
|
|
@@ -98,8 +99,9 @@ | |
| /// </param> | ||
| /// <param name="options">The options to start the new orchestration with.</param> | ||
| /// <param name="cancellation"> | ||
| /// The cancellation token. This only cancels enqueueing the new orchestration to the backend. Does not cancel the | ||
| /// orchestration once enqueued. | ||
| /// The cancellation token. This only cancels enqueueing the new orchestration to the backend, or waiting for the | ||
| /// termination of an existing non-terminal instance if its status is not in | ||
| /// <see cref="StartOrchestrationOptions.DedupeStatuses"/>. Does not cancel the orchestration once enqueued. | ||
| /// </param> | ||
| /// <returns> | ||
| /// A task that completes when the orchestration instance is successfully scheduled. The value of this task is | ||
|
|
@@ -529,7 +531,7 @@ | |
| throw new NotSupportedException( | ||
| $"{this.GetType()} does not support listing orchestration instance IDs filtered by completed time."); | ||
| } | ||
|
|
||
|
Check warning on line 534 in src/Client/Core/DurableTaskClient.cs
|
||
| // TODO: Create task hub | ||
|
|
||
| // TODO: Delete task hub | ||
|
|
@@ -539,3 +541,3 @@ | |
| /// </summary> | ||
| /// <returns>A <see cref="ValueTask"/> that completes when the disposal completes.</returns> | ||
| public abstract ValueTask DisposeAsync(); | ||
|
|
||
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.