IDurableOrchestrationContext.ContinueAsNew(Object, Boolean) 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.
Restarts the orchestration by clearing its history.
public void ContinueAsNew (object input, bool preserveUnprocessedEvents = false);
abstract member ContinueAsNew : obj * bool -> unit
Public Sub ContinueAsNew (input As Object, Optional preserveUnprocessedEvents As Boolean = false)
Parameters
- input
- Object
The JSON-serializeable data to re-initialize the instance with.
- preserveUnprocessedEvents
- Boolean
If set to true
, re-adds any unprocessed external events into the new execution
history when the orchestration instance restarts. If false
, any unprocessed
external events will be discarded when the orchestration instance restarts.
Remarks
Large orchestration histories can consume a lot of memory and cause delays in instance load times. This method can be used to periodically truncate the stored history of an orchestration instance.
Note that any unprocessed external events will be discarded when an orchestration instance restarts itself using this method.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應