Skip to content

Commit 999c8f8

Browse files
authored
Set run id in update handle (#705)
* Add assertion to existing test * Set run ID in update handle
1 parent c44a6d8 commit 999c8f8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

temporalio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5412,7 +5412,7 @@ async def start_workflow_update(
54125412
client=self._client,
54135413
id=req.request.meta.update_id,
54145414
workflow_id=input.id,
5415-
workflow_run_id=input.run_id,
5415+
workflow_run_id=resp.update_ref.workflow_execution.run_id,
54165416
result_type=input.ret_type,
54175417
)
54185418
if resp.HasField("outcome"):

tests/worker/test_workflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4590,6 +4590,8 @@ async def test_workflow_update_separate_handle(
45904590
wait_for_stage=WorkflowUpdateStage.ACCEPTED,
45914591
)
45924592

4593+
assert update_handle_1.workflow_run_id == handle.first_execution_run_id
4594+
45934595
# Create another handle and have them both wait for update complete
45944596
update_handle_2 = client.get_workflow_handle(
45954597
handle.id, run_id=handle.result_run_id

0 commit comments

Comments
 (0)