Retention and duplicate workflow policy

Closed workflows are subject to the retention period. However, I can have a workflow-creation policy that prevents duplicates when a workflow with the same id is currently running or has completed successfully (WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY).

Will the attempt to reuse an existing (finished) workflow id reset its retention period? Otherwise after the retention period a “duplicate” could run (since it wouldn’t know anymore that it is a duplicate).

Hello @aksdb

Currently, once the workflow hits the retention period you will be able to start another workflow with the same id
We have an open issue related to it, Consider separating retention period from uniqueness guarantee period · Issue #487 · temporalio/temporal · GitHub

Antonio