Skip to content

Add Temporal Operation Handler#1503

Draft
VegetarianOrc wants to merge 3 commits intomainfrom
amazzeo/temporal-nexus-operation-handler
Draft

Add Temporal Operation Handler#1503
VegetarianOrc wants to merge 3 commits intomainfrom
amazzeo/temporal-nexus-operation-handler

Conversation

@VegetarianOrc
Copy link
Copy Markdown
Contributor

What was changed

Added support for Temporal-backed Nexus operation handlers.

This introduces @temporalio.nexus.temporal_operation, TemporalNexusClient, and TemporalOperationResult, allowing Nexus operation handlers to either return a synchronous result or start a Temporal workflow as the async backing operation. The branch also adds token parsing support for generic operation tokens, cancellation support for Temporal-backed workflow operations, Nexus workflow client overloads for the new operation shape, and focused runtime/type coverage.

Why?

This gives Nexus operation handlers a first-class way to interact with Temporal while preserving Nexus async operation semantics, workflow linking/callback behavior, cancellation handling, and typed workflow-start ergonomics.

Checklist

  1. How was this tested:

    • Existing tests
    • Added type tests
    • Added tests for temporal operation
  2. Any docs updates needed?

Yes. The Nexus docs should cover @temporalio.nexus.temporal_operation, TemporalNexusClient.start_workflow,
TemporalOperationResult.sync, and async workflow-backed operation behavior.

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.

1 participant