Skip to content

WorkflowIdReusePolicy document should mention WorkflowExecutionErrorWhenAlreadyStarted option #1857

@yux0

Description

@yux0

Expected Behavior

The WorkflowExecutionAlreadyStartedFailure will only return when the option WorkflowExecutionErrorWhenAlreadyStarted is set.

Actual Behavior

The doc on WorkflowIdReusePolicy is

// Defines whether to allow re-using a workflow id from a previously *closed* workflow.
// If the request is denied, a `WorkflowExecutionAlreadyStartedFailure` is returned.
//
// See `WorkflowIdConflictPolicy` for handling workflow id duplication with a *running* workflow.

It does not mention the default behavior is not return WorkflowExecutionAlreadyStartedFailure. This is misleading.

Specifications

  • Version:
  • Platform:

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