Skip to content

Commit 9880155

Browse files
sophiatevSophia Tevosyan
andauthored
Add a warning to the rewind method (#1264)
Co-authored-by: Sophia Tevosyan <stevosyan@microsoft.com>
1 parent f09ccd6 commit 9880155

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DurableTask.Core/TaskOrchestrationDispatcher.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,12 @@ void ProcessRewindOrchestrationDecision(
13261326
out List<TaskMessage> subOrchestrationRewindMessages,
13271327
out OrchestrationRuntimeState newRuntimeState)
13281328
{
1329+
1330+
/* WARNING!!!:
1331+
* If any changes are made to how this method modifies the orchestration's history, then corresponding changes *must*
1332+
* be made in the backend implementations that rely on this method for executing a rewind.
1333+
*/
1334+
13291335
HashSet<int> failedTaskIds = new();
13301336
subOrchestrationRewindMessages = new();
13311337

0 commit comments

Comments
 (0)