Skip to content

[Bug] RPCStatusCode.ALREADY_EXISTS can be swallowed #624

Closed
@dandavison

Description

@dandavison

RPCStatusCode.ALREADY_EXISTS can be swallowed due to an unhandled branch of execution here:

if err.status == RPCStatusCode.ALREADY_EXISTS and err.grpc_status.details:
details = temporalio.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure()
if err.grpc_status.details[0].Unpack(details):
raise temporalio.exceptions.WorkflowAlreadyStartedError(
input.id, input.workflow, run_id=details.run_id
)
else:
raise

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions