-
Notifications
You must be signed in to change notification settings - Fork 11
Versioning, recursive terminating/purging, Replay safe logger #93
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 3 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
834d7f1
feat: Add versioning support and replay-safe logging recursive termin…
YunchuWang 6e59303
update versioning
YunchuWang d0cf4e7
feat: Implement versioning support with default version handling and …
YunchuWang c2635a7
Merge branch 'main' into wangbill/versioning
YunchuWang 707f5d6
Update packages/durabletask-js/src/client/client.ts
YunchuWang 199bcd6
Update packages/durabletask-js/src/client/client.ts
YunchuWang ba223e5
test: Add cases for mixed semantic and non-semantic version comparisons
YunchuWang 2186314
Update packages/durabletask-js/test/orchestration_context_methods.spe…
YunchuWang ebe38b9
Update packages/durabletask-js/src/client/client.ts
YunchuWang e13a92f
fix: Standardize quotes in outputOrOptions type check
YunchuWang 7faedb1
Merge branch 'wangbill/versioning' of https://github.com/microsoft/du…
YunchuWang 1d5ae0d
feat: Enhance TerminateInstanceOptions with type guards and factory f…
YunchuWang 54d0019
feat: Add versioning support to DurableTaskAzureManagedWorkerBuilder …
YunchuWang 277ccc5
feat: Update orchestration termination to use terminateOptions factory
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
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
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
18 changes: 18 additions & 0 deletions
18
packages/durabletask-js/src/orchestration/orchestration-purge-options.ts
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,18 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| /** | ||
| * Options for purging orchestration instances. | ||
| */ | ||
| export interface PurgeInstanceOptions { | ||
| /** | ||
| * Whether to recursively purge sub-orchestrations as well. | ||
| * When true, all child orchestrations spawned by the target orchestration | ||
| * will also be purged. | ||
| * | ||
| * Note: Recursive purging may not be supported by all backend implementations. | ||
| * | ||
| * @default false | ||
| */ | ||
| recursive?: boolean; | ||
| } |
21 changes: 21 additions & 0 deletions
21
packages/durabletask-js/src/orchestration/orchestration-terminate-options.ts
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,21 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| /** | ||
| * Options for terminating orchestration instances. | ||
| */ | ||
| export interface TerminateInstanceOptions { | ||
| /** | ||
| * Whether to recursively terminate sub-orchestrations as well. | ||
| * When true, all child orchestrations spawned by the target orchestration | ||
| * will also be terminated. | ||
| * | ||
| * @default false | ||
| */ | ||
| recursive?: boolean; | ||
|
|
||
| /** | ||
| * The optional output to set for the terminated orchestrator instance. | ||
| */ | ||
| output?: any; | ||
| } |
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.