Skip to content

Commit

Permalink
Send first_execution_run_id with Update requests
Browse files Browse the repository at this point in the history
Fixes #682
  • Loading branch information
dandavison committed Dec 16, 2024
1 parent 1f4a6f8 commit 193c4ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions temporalio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2020,6 +2020,7 @@ async def _start_update(
StartWorkflowUpdateInput(
id=self._id,
run_id=self._run_id,
first_execution_run_id=self.first_execution_run_id,
update_id=id,
update=update_name,
args=temporalio.common._arg_or_args(arg, args),
Expand Down Expand Up @@ -4648,6 +4649,7 @@ class StartWorkflowUpdateInput:

id: str
run_id: Optional[str]
first_execution_run_id: Optional[str]
update_id: Optional[str]
update: str
args: Sequence[Any]
Expand Down Expand Up @@ -5275,6 +5277,7 @@ async def start_workflow_update(
workflow_id=input.id,
run_id=input.run_id or "",
),
first_execution_run_id=input.first_execution_run_id or "",
request=temporalio.api.update.v1.Request(
meta=temporalio.api.update.v1.Meta(
update_id=input.update_id or str(uuid.uuid4()),
Expand Down

0 comments on commit 193c4ab

Please sign in to comment.