René's URL Explorer Experiment


Title: Add orchestration cloning with explicit target IDs and optional versions by Copilot · Pull Request #312 · microsoft/durabletask-java · GitHub

Open Graph Title: Add orchestration cloning with explicit target IDs and optional versions by Copilot · Pull Request #312 · microsoft/durabletask-java

X Title: Add orchestration cloning with explicit target IDs and optional versions by Copilot · Pull Request #312 · microsoft/durabletask-java

Description: Issue describing the changes in this PR Resolves #311. Support restarting an orchestration from the beginning with its original name and input, a required target instance ID, and an optional version override. Execution history is not copied. Pull request checklist My changes do not require documentation changes Otherwise: Documentation issue linked to PR My changes are added to the CHANGELOG.md I have added all required tests (Unit tests, E2E tests) Additional information Add restartInstance(instanceId, RestartInstanceOptions) with fluent setNewInstanceId and setVersion options. Null options and missing or blank target IDs are rejected before the RPC. Preserve the existing restartInstance(instanceId, boolean) overload and its behavior. An omitted or null version preserves the backend's default restart behavior; "" explicitly selects an unversioned orchestration. Add nullable TaskOrchestrationContext.getSourceInstanceId(). Clones expose their immediate source during execution and replay; sub-orchestrations do not inherit this reference. Use the backend restart RPC without falling back to scheduling a new orchestration. Requires a backend supporting explicit restart targets and versions. Pin protobuf generation to the upstream explicit-target/version contract. client.restartInstance("order-123", new RestartInstanceOptions() .setNewInstanceId("order-123-retry") .setVersion("2.0")); // Inside the clone: ctx.getInstanceId(); // "order-123-retry" ctx.getSourceInstanceId(); // "order-123" ctx.getVersion(); // "2.0" Cloning order-123-retry again exposes order-123-retry as the immediate source, rather than order-123. Focused tests cover version presence, required options and IDs, chained clones, backend errors, legacy behavior, and replay/sub-orchestration isolation.

Open Graph Description: Issue describing the changes in this PR Resolves #311. Support restarting an orchestration from the beginning with its original name and input, a required target instance ID, and an optional versio...

X Description: Issue describing the changes in this PR Resolves #311. Support restarting an orchestration from the beginning with its original name and input, a required target instance ID, and an optional versio...

Opengraph URL: https://github.com/microsoft/durabletask-java/pull/312

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c3dea528-d941-415b-e1c5-749a494f8dbb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id82B6:195CE:D94AB:11DAAB:6AFE439D
html-safe-noncedbd867e3fa9b40bf68c0aebaf0201cbc09adc7d9dc739bd63a5b7472dc24937e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkI2OjE5NUNFOkQ5NEFCOjExREFBQjo2QUZFNDM5RCIsInZpc2l0b3JfaWQiOiI2OTY4OTE0OTAyOTI4NzM3MTgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac05f0944e7d4aace6ba2761a8e511f6bcfa6a768dbda680b113534d68cf2b56cb
hovercard-subject-tagpull_request:5146745866
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/durabletask-java/pull/312/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:altIssue describing the changes in this PR Resolves #311. Support restarting an orchestration from the beginning with its original name and input, a required target instance ID, and an optional versio...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef1a5901e2377b0af2a0b303f9528678f1475d04b9219dca1e993344196eaa07c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/microsoft/durabletask-java git https://github.com/microsoft/durabletask-java.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id452823832
octolytics-dimension-repository_nwomicrosoft/durabletask-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id452823832
octolytics-dimension-repository_network_root_nwomicrosoft/durabletask-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasece393ea11ad276623b946bc9663d3e7d6f564275
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/durabletask-java/pull/312/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-java%2Fpull%2F312%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-java%2Fpull%2F312%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=microsoft%2Fdurabletask-java
Reloadhttps://github.com/microsoft/durabletask-java/pull/312/files
Reloadhttps://github.com/microsoft/durabletask-java/pull/312/files
Reloadhttps://github.com/microsoft/durabletask-java/pull/312/files
microsofthttps://github.com/microsoft
durabletask-javahttps://github.com/microsoft/durabletask-java
Codehttps://github.com/microsoft/durabletask-java
Issues47 (47)https://github.com/microsoft/durabletask-java/issues
Pull requests4 (4)https://github.com/microsoft/durabletask-java/pulls
Actionshttps://github.com/microsoft/durabletask-java/actions
Projectshttps://github.com/microsoft/durabletask-java/projects
Security and qualityhttps://github.com/microsoft/durabletask-java/security
Insightshttps://github.com/microsoft/durabletask-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fmicrosoft%2Fdurabletask-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmicrosoft%2Fdurabletask-java%2Fissues%2Fnew%2Fchoose
Copilothttps://github.com/apps/copilot-swe-agent
mainhttps://github.com/microsoft/durabletask-java/tree/main
copilot/add-native-sdk-api-cloninghttps://github.com/microsoft/durabletask-java/tree/copilot/add-native-sdk-api-cloning
Conversation 1 https://github.com/microsoft/durabletask-java/pull/312
Commits 6 https://github.com/microsoft/durabletask-java/pull/312/commits
Checks 8 https://github.com/microsoft/durabletask-java/pull/312/checks
Files changed https://github.com/microsoft/durabletask-java/pull/312/files
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/312/files
Add orchestration cloning with explicit target IDs and optional versions https://github.com/microsoft/durabletask-java/pull/312/files#top
Show all changes 6 commits https://github.com/microsoft/durabletask-java/pull/312/files
77a84d5 Initial plan Copilot Nov 4, 2026 https://github.com/microsoft/durabletask-java/pull/312/commits/77a84d52f7458c29531df6ffa1159561e3f7efe6
ff41f98 Support explicit orchestration cloning with version and source lineage Copilot Nov 4, 2026 https://github.com/microsoft/durabletask-java/pull/312/commits/ff41f984f3793fc605d8eac5d256c8fe930efa9d
ba61c35 Potential fix for pull request finding 'Possible confusion of local a… bachuv Nov 6, 2026 https://github.com/microsoft/durabletask-java/pull/312/commits/ba61c35c497ce4aa4991d1acb4173f33179e7ee4
9b5bc23 Merge branch 'main' into copilot/add-native-sdk-api-cloning bachuv Nov 6, 2026 https://github.com/microsoft/durabletask-java/pull/312/commits/9b5bc2358b51b0a97160d5e6a57df8b707ad2960
27332f2 add restartinstanceoptions bachuv Nov 6, 2026 https://github.com/microsoft/durabletask-java/pull/312/commits/27332f2cd9b258bde2b5cfa1dcb2379289d3a9d1
76440d8 Update cloning to use the new CloneInstance RPC bachuv Nov 11, 2026 https://github.com/microsoft/durabletask-java/pull/312/commits/76440d8783f7e71a9ee51cd2a9b4e9b05117c09c
Clear filters https://github.com/microsoft/durabletask-java/pull/312/files
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/312/files
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/312/files
CHANGELOG.md https://github.com/microsoft/durabletask-java/pull/312/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
build.gradle https://github.com/microsoft/durabletask-java/pull/312/files#diff-fd17192d661b6c8ba0508857e4cc18d29685d88095373f24241799d98987ffdc
DurableTaskClient.java https://github.com/microsoft/durabletask-java/pull/312/files#diff-484194fa534fc27cfa714a2c416f3a8fb833c53c90e7ba8a942f7a2cd0699af2
DurableTaskGrpcClient.java https://github.com/microsoft/durabletask-java/pull/312/files#diff-30aa873c38b88cd255657883007a5ad2c4b5cd1fd47beb5b9ddb9893f27baceb
RestartInstanceOptions.java https://github.com/microsoft/durabletask-java/pull/312/files#diff-fcc4c527d0ac93decd2bdf6fc3ad3bdb5cc7a915b5159408056eeb67b35377f5
TaskOrchestrationContext.java https://github.com/microsoft/durabletask-java/pull/312/files#diff-e7d1472af3647c269f4d363238cb733a93f654f63da39476f62b21d8864f7d95
TaskOrchestrationExecutor.java https://github.com/microsoft/durabletask-java/pull/312/files#diff-251cc9cd61c0a96545d043e59b477def4d84486c2c68e56dcbc8491e41b9ef73
DurableTaskGrpcClientRestartTest.java https://github.com/microsoft/durabletask-java/pull/312/files#diff-e92fe873fb4a1fd437b17dd51c490c6ba619e469d09523f7658c1c16ebd7c7c3
TaskOrchestrationCloningTest.java https://github.com/microsoft/durabletask-java/pull/312/files#diff-64e6537358b9dfdb6780855da5b5c7ac9818bb963181ede4da34989b89ab8bc9
PROTO_SOURCE_COMMIT_HASH https://github.com/microsoft/durabletask-java/pull/312/files#diff-4b1e90acf4b3b7b41ed5d96354506436f5fd4446098ba28fdbf1cf258b1eb889
README.md https://github.com/microsoft/durabletask-java/pull/312/files#diff-73bfae7491f49c5a6350cd436874d22b25dabaf769595c0cf8adae9d4211062e
orchestrator_service.proto https://github.com/microsoft/durabletask-java/pull/312/files#diff-3743553a298bf5878a0a2e7d3ffc69a425e628d228529b7a1a1eb814b0e2612e
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
CHANGELOG.mdhttps://github.com/microsoft/durabletask-java/pull/312/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/microsoft/durabletask-java/blob/76440d8783f7e71a9ee51cd2a9b4e9b05117c09c/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/312/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/312/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
client/build.gradlehttps://github.com/microsoft/durabletask-java/pull/312/files#diff-fd17192d661b6c8ba0508857e4cc18d29685d88095373f24241799d98987ffdc
View file https://github.com/microsoft/durabletask-java/blob/76440d8783f7e71a9ee51cd2a9b4e9b05117c09c/client/build.gradle
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/312/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/312/files#diff-fd17192d661b6c8ba0508857e4cc18d29685d88095373f24241799d98987ffdc
https://github.com/microsoft/durabletask-java/pull/312/files#diff-fd17192d661b6c8ba0508857e4cc18d29685d88095373f24241799d98987ffdc
https://github.com/microsoft/durabletask-java/pull/312/files#diff-fd17192d661b6c8ba0508857e4cc18d29685d88095373f24241799d98987ffdc
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
client/src/main/java/com/microsoft/durabletask/DurableTaskClient.javahttps://github.com/microsoft/durabletask-java/pull/312/files#diff-484194fa534fc27cfa714a2c416f3a8fb833c53c90e7ba8a942f7a2cd0699af2
View file https://github.com/microsoft/durabletask-java/blob/76440d8783f7e71a9ee51cd2a9b4e9b05117c09c/client/src/main/java/com/microsoft/durabletask/DurableTaskClient.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/312/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/312/files#diff-484194fa534fc27cfa714a2c416f3a8fb833c53c90e7ba8a942f7a2cd0699af2
https://github.com/microsoft/durabletask-java/pull/312/files#diff-484194fa534fc27cfa714a2c416f3a8fb833c53c90e7ba8a942f7a2cd0699af2
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
client/src/main/java/com/microsoft/durabletask/DurableTaskGrpcClient.javahttps://github.com/microsoft/durabletask-java/pull/312/files#diff-30aa873c38b88cd255657883007a5ad2c4b5cd1fd47beb5b9ddb9893f27baceb
View file https://github.com/microsoft/durabletask-java/blob/76440d8783f7e71a9ee51cd2a9b4e9b05117c09c/client/src/main/java/com/microsoft/durabletask/DurableTaskGrpcClient.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/312/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/312/files#diff-30aa873c38b88cd255657883007a5ad2c4b5cd1fd47beb5b9ddb9893f27baceb
https://github.com/microsoft/durabletask-java/pull/312/files#diff-30aa873c38b88cd255657883007a5ad2c4b5cd1fd47beb5b9ddb9893f27baceb
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
client/src/main/java/com/microsoft/durabletask/RestartInstanceOptions.javahttps://github.com/microsoft/durabletask-java/pull/312/files#diff-fcc4c527d0ac93decd2bdf6fc3ad3bdb5cc7a915b5159408056eeb67b35377f5
View file https://github.com/microsoft/durabletask-java/blob/76440d8783f7e71a9ee51cd2a9b4e9b05117c09c/client/src/main/java/com/microsoft/durabletask/RestartInstanceOptions.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/312/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
client/src/main/java/com/microsoft/durabletask/TaskOrchestrationContext.javahttps://github.com/microsoft/durabletask-java/pull/312/files#diff-e7d1472af3647c269f4d363238cb733a93f654f63da39476f62b21d8864f7d95
View file https://github.com/microsoft/durabletask-java/blob/76440d8783f7e71a9ee51cd2a9b4e9b05117c09c/client/src/main/java/com/microsoft/durabletask/TaskOrchestrationContext.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/312/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/312/files#diff-e7d1472af3647c269f4d363238cb733a93f654f63da39476f62b21d8864f7d95
https://github.com/microsoft/durabletask-java/pull/312/files#diff-e7d1472af3647c269f4d363238cb733a93f654f63da39476f62b21d8864f7d95
https://github.com/microsoft/durabletask-java/blob/main/CODEOWNERS#L11
client/src/main/java/com/microsoft/durabletask/TaskOrchestrationExecutor.javahttps://github.com/microsoft/durabletask-java/pull/312/files#diff-251cc9cd61c0a96545d043e59b477def4d84486c2c68e56dcbc8491e41b9ef73
View file https://github.com/microsoft/durabletask-java/blob/76440d8783f7e71a9ee51cd2a9b4e9b05117c09c/client/src/main/java/com/microsoft/durabletask/TaskOrchestrationExecutor.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-java/pull/312/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-java/pull/312/files#diff-251cc9cd61c0a96545d043e59b477def4d84486c2c68e56dcbc8491e41b9ef73
https://github.com/microsoft/durabletask-java/pull/312/files#diff-251cc9cd61c0a96545d043e59b477def4d84486c2c68e56dcbc8491e41b9ef73
https://github.com/microsoft/durabletask-java/pull/312/files#diff-251cc9cd61c0a96545d043e59b477def4d84486c2c68e56dcbc8491e41b9ef73
https://github.com/microsoft/durabletask-java/pull/312/files#diff-251cc9cd61c0a96545d043e59b477def4d84486c2c68e56dcbc8491e41b9ef73
https://github.com/microsoft/durabletask-java/pull/312/files#diff-251cc9cd61c0a96545d043e59b477def4d84486c2c68e56dcbc8491e41b9ef73
https://github.com/microsoft/durabletask-java/pull/312/files#diff-251cc9cd61c0a96545d043e59b477def4d84486c2c68e56dcbc8491e41b9ef73
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/312/files
Please reload this pagehttps://github.com/microsoft/durabletask-java/pull/312/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.