Skip to content

Mismatch in workflow_id_reuse_policy across testing and production environments #341

@ryan-gang

Description

@ryan-gang

When executing Temporal tests locally, workflows with the same workflow_id, and COMPLETED status are not rerun. They raise a WorkflowExecutionAlreadyStartedFailure.

But this is not the case in production, where COMPLETED workflows with the same workflow_id are rerun without passing {workflow_id_reuse_policy: :allow} explicitly.

I have currently patched

reuse_policy = options[:workflow_id_reuse_policy] || :allow_failed
, to use :allow as the default value.

Is this intended behavior ? I feel the testing environment should be as close as possible to dev & production.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions