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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應