René's URL Explorer Experiment


Title: `TaskOrchestrationContext.waitForExternalEvent` Timeout "Removed" After Attempting to Schedule Duplicate Orchestration · Issue #203 · microsoft/durabletask-java · GitHub

Open Graph Title: `TaskOrchestrationContext.waitForExternalEvent` Timeout "Removed" After Attempting to Schedule Duplicate Orchestration · Issue #203 · microsoft/durabletask-java

X Title: `TaskOrchestrationContext.waitForExternalEvent` Timeout "Removed" After Attempting to Schedule Duplicate Orchestration · Issue #203 · microsoft/durabletask-java

Description: Summary An orchestration which specifies a timeout for waiting on an external event will seemingly have that timeout "removed"/ignored after another attempt is made to schedule an orchestration instance with the same ID. Steps to Reprodu...

Open Graph Description: Summary An orchestration which specifies a timeout for waiting on an external event will seemingly have that timeout "removed"/ignored after another attempt is made to schedule an orchestration ins...

X Description: Summary An orchestration which specifies a timeout for waiting on an external event will seemingly have that timeout "removed"/ignored after another attempt is made to schedule an orchest...

Opengraph URL: https://github.com/microsoft/durabletask-java/issues/203

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`TaskOrchestrationContext.waitForExternalEvent` Timeout \"Removed\" After Attempting to Schedule Duplicate Orchestration","articleBody":"## Summary\n\nAn orchestration which specifies a timeout for waiting on an external event will seemingly have that timeout \"removed\"/ignored after another attempt is made to schedule an orchestration instance with the same ID.\n\n## Steps to Reproduce\n1. Copy the example below.\n2. Execute the `orchestrator-trigger` function via HTTP.\n\n```java\n@FunctionName(\"orchestrator-trigger\")\npublic HttpResponseMessage triggerOrchestrator(\n    @HttpTrigger(\n        name = \"request\",\n        methods = { HttpMethod.GET },\n        authLevel = AuthorizationLevel.FUNCTION,\n        route = \"orchestrator/trigger\"\n    )\n    HttpRequestMessage\u003cString> request,\n    @DurableClientInput(name = \"durableContext\")\n    DurableClientContext durableContext,\n    ExecutionContext context\n) throws InterruptedException {\n    DurableTaskClient client = durableContext.getClient();\n    String instanceId = \"the-only-instance\";\n\n    client.scheduleNewOrchestrationInstance(\"orchestrator\", null, instanceId);\n    client.raiseEvent(instanceId, \"first\", 1);\n\n    // Attempting to schedule another orchestration instance with the same instance ID results\n    // in the event timeout within the existing orchestrator instance from triggering.\n    try {\n        client.scheduleNewOrchestrationInstance(\"orchestrator\", null, instanceId);\n    } catch (RuntimeException ignored) { }\n\n    Thread.sleep(10_000);\n    client.raiseEvent(instanceId, \"second\", 2);\n\n    return request.createResponseBuilder(HttpStatus.OK).build();\n}\n\n@FunctionName(\"orchestrator\")\npublic void orchestrator(\n    @DurableOrchestrationTrigger(name = \"orchestration\")\n    TaskOrchestrationContext orchestration,\n    ExecutionContext context\n) {\n    Task\u003cInteger> firstTask =\n        orchestration.waitForExternalEvent(\"first\", Duration.ofSeconds(1), Integer.class);\n\n    Task\u003cInteger> secondTask =\n        orchestration.waitForExternalEvent(\"second\", Duration.ofSeconds(1), Integer.class);\n\n    List\u003cInteger> results = orchestration.allOf(firstTask, secondTask).await();\n    int first = results.get(0);\n    int second = results.get(1);\n\n    System.out.printf(\"Triggered! First: %s, Second: %s\\n\", first, second);\n}\n```\n\n## Expected Result\nThe orchestration throws an exception due to the second event not arriving within one second.\n\n## Actual Result\nAfter ten seconds, the orchestration prints `Triggered! First: 1, Second: 2`.\n\n## Additional Context\nDeleting the entire `try`/`catch` block that contains the second `scheduleNewOrchestrationInstance` call results in the expected outcome - the orchestration throws.\n\nThis test case is contrived - my actual use case is:\n- A process operates on the combination of a ZIP file and a CSV file.\n- These two files are provided to the application separately, in any order, but at roughly the same time.\n- Whichever file arrives first needs to start an orchestration instance that will wait for both files.\n- We need to avoid a race condition that would result in two separate orchestration instances being created, each waiting for the opposite file. So we'll create a deterministic instance ID based on other data, have the CSV/ZIP receivers always attempt to schedule an orchestration instance with that ID, and ignore the \"already exists\" error when it occurs.\n- The CSV/ZIP receivers then simply send their own single event to the orchestration instance.\n- The orchestration instance needs to have a timeout in the situation where the second file never arrives.","author":{"url":"https://github.com/ScottHamper","@type":"Person","name":"ScottHamper"},"datePublished":"2025-02-05T20:36:03Z","url":"https://github.com/microsoft/durabletask-java/issues/203"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:192a3786-117a-c1d0-1ba6-3a797b8a4cae
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDBC0:3EB23A:7C89F:A8A7D:6AFE321B
html-safe-noncece097fce003d1a7fbe39166a821de1e1054b2d77d7712c1fe42db4fa6698d40d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkMwOjNFQjIzQTo3Qzg5RjpBOEE3RDo2QUZFMzIxQiIsInZpc2l0b3JfaWQiOiIzMDk1OTAwMTg3ODE4NjAzMDM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac670767a4f1221f6b55f052b629867a90983e2843fb77675ec1b6fbe20516e517
hovercard-subject-tagissue:2833912397
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/durabletask-java/203/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5b75032c75e3d3004b74162f5736fc20e400bfb273ddac6775a1baa5461b269d/microsoft/durabletask-java/issues/203
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5b75032c75e3d3004b74162f5736fc20e400bfb273ddac6775a1baa5461b269d/microsoft/durabletask-java/issues/203
og:image:altSummary An orchestration which specifies a timeout for waiting on an external event will seemingly have that timeout "removed"/ignored after another attempt is made to schedule an orchestration ins...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameScottHamper
hostnamegithub.com
expected-hostnamegithub.com
Noned70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseccb88d9c92abe69245b429398c8a57ae87070c7c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/durabletask-java/issues/203#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-java%2Fissues%2F203
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%2Fissues%2F203
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fdurabletask-java
Reloadhttps://github.com/microsoft/durabletask-java/issues/203
Reloadhttps://github.com/microsoft/durabletask-java/issues/203
Reloadhttps://github.com/microsoft/durabletask-java/issues/203
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
https://github.com/microsoft/durabletask-java
New issuehttps://github.com/login?return_to=https://github.com/microsoft/durabletask-java/issues/203
New issuehttps://github.com/login?return_to=https://github.com/microsoft/durabletask-java/issues/203
TaskOrchestrationContext.waitForExternalEvent Timeout "Removed" After Attempting to Schedule Duplicate Orchestrationhttps://github.com/microsoft/durabletask-java/issues/203#top
P2Priority 2https://github.com/microsoft/durabletask-java/issues?q=state%3Aopen%20label%3A%22P2%22
https://github.com/ScottHamper
Scott Hamper (ScottHamper)https://github.com/ScottHamper
on Feb 5, 2025https://github.com/microsoft/durabletask-java/issues/203#issue-2833912397
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
Needs: Triage 🔍https://github.com/microsoft/durabletask-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Triage%20%3Amag%3A%22
on Feb 5, 2025https://github.com/microsoft/durabletask-java/issues/203#event-16200496088
https://github.com/ScottHamper
Scott Hamper (ScottHamper)https://github.com/ScottHamper
on Feb 6, 2025https://github.com/microsoft/durabletask-java/issues/203#issuecomment-2640070749
Anatoli Beliaev (AnatoliB)https://github.com/AnatoliB
P2Priority 2https://github.com/microsoft/durabletask-java/issues?q=state%3Aopen%20label%3A%22P2%22
Needs: Triage 🔍https://github.com/microsoft/durabletask-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Triage%20%3Amag%3A%22
on Mar 4, 2025https://github.com/microsoft/durabletask-java/issues/203#event-16582691904
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/durabletask-java/issues/203
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/durabletask-java/issues/203
P2Priority 2https://github.com/microsoft/durabletask-java/issues?q=state%3Aopen%20label%3A%22P2%22
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.