Hello experts.
I have a workflow that is started using WorkflowIDReusePolicy as WorkflowIDReusePolicyAllowDuplicateFailedOnly.
I have a domain, that was created using RetentionInDays as 3.
I have started this workflow and everything works great. After the workflow completes, if i try to start it again it fails with the following error: WorkflowExecutionAlreadyStartedError. Ok until now, right?
But i noticed that, after the three days have passed if i try to start the same workflow it starts normally. It wont fail by WorkflowExecutionAlreadyStartedError.
Is this behavior expected? If so and i don’t want to allow this behavior, should i manage this state by myself?
In my perspective, it should with fail by WorkflowExecutionAlreadyStartedError even though the retention period has passed.