Enum ActivityIdReusePolicy
- Namespace
- Temporalio.Api.Enums.V1
- Assembly
- Temporalio.dll
Defines whether to allow re-using an activity ID from a previously closed activity.
If the request is denied, the server returns an ActivityExecutionAlreadyStarted error.
See ActivityIdConflictPolicy for handling ID duplication with a running activity.
public enum ActivityIdReusePolicy
Fields
[OriginalName("ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE")] AllowDuplicate = 1Always allow starting an activity using the same activity ID.
[OriginalName("ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY")] AllowDuplicateFailedOnly = 2Allow starting an activity using the same ID only when the last activity's final state is one of {failed, canceled, terminated, timed out}.
[OriginalName("ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE")] RejectDuplicate = 3Do not permit re-use of the ID for this activity. Future start requests could potentially change the policy, allowing re-use of the ID.
[OriginalName("ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED")] Unspecified = 0