IDurableEntityClient.CleanEntityStorageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes empty entities from storage and releases orphaned locks.
public System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.CleanEntityStorageResult> CleanEntityStorageAsync (bool removeEmptyEntities, bool releaseOrphanedLocks, System.Threading.CancellationToken cancellationToken);
abstract member CleanEntityStorageAsync : bool * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.CleanEntityStorageResult>
Public Function CleanEntityStorageAsync (removeEmptyEntities As Boolean, releaseOrphanedLocks As Boolean, cancellationToken As CancellationToken) As Task(Of CleanEntityStorageResult)
Parameters
- removeEmptyEntities
- Boolean
Whether to remove empty entities.
- releaseOrphanedLocks
- Boolean
Whether to release orphaned locks.
- cancellationToken
- CancellationToken
Cancellation token that can be used to cancel the operation.
Returns
A task that completes when the operation is finished.
Remarks
An entity is considered empty, and is removed, if it has no state, is not locked, and has been idle for more than EntityMessageReorderWindowInMinutes minutes. Locks are considered orphaned, and are released, if the orchestration that holds them is not in state Running. This should not happen under normal circumstances, but can occur if the orchestration instance holding the lock exhibits replay nondeterminism failures, or if it is explicitly purged.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기