Skip to content

Add Temporal Operation Handler#2085

Open
VegetarianOrc wants to merge 7 commits into
mainfrom
amazzeo/temporal-operation-handler
Open

Add Temporal Operation Handler#2085
VegetarianOrc wants to merge 7 commits into
mainfrom
amazzeo/temporal-operation-handler

Conversation

@VegetarianOrc
Copy link
Copy Markdown
Contributor

What was changed

Added TemporalOperationHandler for Nexus operations backed by Temporal workflows, including sync/async result helpers, a Nexus-aware client wrapper, operation-token parsing, default workflow cancellation, and public exports from @temporalio/nexus.

Added unit and integration coverage for token validation, type inference, sync/async operation execution, cancellation behavior, invalid tokens, duplicate async starts, and retrying after a failed workflow start.

Why?

This gives Nexus handlers a first-class way to return synchronous results or start a Temporal workflow as the asynchronous backing operation, while preserving correct token validation and cancellation behavior.

Checklist

  1. How was this tested:
  • New tests added
  • Existing tests

@VegetarianOrc VegetarianOrc force-pushed the amazzeo/temporal-operation-handler branch from 1f0e3bd to 2bc2e32 Compare May 27, 2026 22:23
@VegetarianOrc VegetarianOrc marked this pull request as ready for review May 27, 2026 23:37
@VegetarianOrc VegetarianOrc requested a review from a team as a code owner May 27, 2026 23:37
Comment thread packages/nexus/src/workflow-helpers.ts Outdated
Comment thread packages/nexus/src/workflow-helpers.ts
…exusrpc interfaces. Add options type to cancelWorkflowRun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants