1
0
mirror of synced 2024-12-22 09:13:07 +01:00

Fix for exception "Neither Store nor Delete are called for the state of the current flow" with parallel requests

This commit is contained in:
Mark van Renswoude 2018-12-19 15:53:56 +01:00
parent aa5eb4371c
commit ab03b38e6c

View File

@ -25,6 +25,9 @@ namespace Tapeti.Flow.Default
await CallConvergeMethod(context,
flowContext.ContinuationMetadata.ConvergeMethodName,
flowContext.ContinuationMetadata.ConvergeMethodSync);
else if (flowContext.FlowState.Continuations.Count > 0)
// This is a parallel flow waiting for other continuations, always store the state
await flowContext.Store();
}
else
await next();