1319
// Use MutableSideEffect so that we can change the defaults without breaking determinism.
1320
get := func(ctx workflow.Context) any {
1322
>
// Re-evaluates migration dynamic config each iteration.
1323
>
p.EnableCHASMMigration = s.enableCHASMMigration()
1324
>
p.MigrateWithRunningWorkflows = s.migrateWithRunningWorkflows()
1325
>
return p
1326
>
}
1327
eq := func(a, b any) bool { return a.(TweakablePolicies) == b.(TweakablePolicies) }
1328
if err := workflow.MutableSideEffect(s.ctx, "tweakables", get, eq).Get(&s.tweakables); err != nil {