Skip to content

Commit 51a6dec

Browse files
committed
Skip MultiOp statuses with RPCStatusCode.OK
1 parent 429fbe8 commit 51a6dec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

temporalio/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6075,15 +6075,13 @@ def on_start(
60756075
and not st.details[0].Is(
60766076
temporalio.api.failure.v1.MultiOperationExecutionAborted.DESCRIPTOR
60776077
)
6078+
and st.code != RPCStatusCode.OK
60786079
)
60796080
),
60806081
None,
60816082
)
60826083
if status and status.code in RPCStatusCode:
6083-
if (
6084-
status.code == RPCStatusCode.ALREADY_EXISTS
6085-
and status.details
6086-
):
6084+
if status.code == RPCStatusCode.ALREADY_EXISTS:
60876085
details = temporalio.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure()
60886086
if status.details[0].Unpack(details):
60896087
err = temporalio.exceptions.WorkflowAlreadyStartedError(

0 commit comments

Comments
 (0)