Skip to content

Add Update-with-Start early-return sample - #423

Open
Abhinav0905 wants to merge 1 commit into
temporalio:mainfrom
Abhinav0905:agent/update-with-start-early-return
Open

Abhinav0905 wants to merge 1 commit into
temporalio:mainfrom
Abhinav0905:agent/update-with-start-early-return

Conversation

@Abhinav0905

Copy link
Copy Markdown
Contributor

Adds the Python Update-with-Start early-return sample requested in #191.

The sample starts a payment Workflow and returns its authorization result through an Update before the slower capture Activity finishes. It includes the worker, starter, activities, Workflow, README and a deterministic test. The test holds capture open, confirms the update result arrives while the Workflow result is still pending, then releases capture and verifies completion.

Fixes #191.

Tests:

  • ruff check message_passing/update_with_start/early_return tests/message_passing/early_return
  • ruff format --check message_passing/update_with_start/early_return tests/message_passing/early_return
  • pytest -q tests/message_passing/early_return/test_early_return.py

@Abhinav0905
Abhinav0905 requested review from a team as code owners November 16, 2026 20:15
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.

[Feature Request] Create update with start early return sample

1 participant