Skip to content

Commit

Permalink
Improve activity execution mapper's persistence logic
Browse files Browse the repository at this point in the history
Update the logic in DefaultActivityExecutionMapper to handle 'Inherit' persistence mode correctly. Instead of returning 'Inherit' directly, now it will default to the mode specified by defaultMode(). This change ensures consistent handling of persistence strategies.
  • Loading branch information
sfmskywalker committed Nov 28, 2024
1 parent 341eeb4 commit fba1a19
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ private async Task<LogPersistenceMode> EvaluateLogPersistenceConfigAsync(LogPers
return defaultMode();

var strategyContext = new LogPersistenceStrategyContext(cancellationToken);
return await strategy.GetPersistenceModeAsync(strategyContext);
var logMode = await strategy.GetPersistenceModeAsync(strategyContext);
return logMode == LogPersistenceMode.Inherit ? defaultMode() : logMode;
}

if (config.Expression == null)
Expand Down

0 comments on commit fba1a19

Please sign in to comment.