mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
Add dynamic config to flip skip persistence optimization (#11318)
## What changed? Add dynamic config to flip skip persistence optimization. ## Why? Allow backwards compatible rollout of skip persistence flag. ## How did you test it? - [X] built - [X] run locally and tested manually - [X] covered by existing tests - [X] added new unit test(s) - [ ] added new functional test(s)
This commit is contained in:
@@ -75,6 +75,7 @@ type Config struct {
|
||||
MaxCallbacksPerExecution dynamicconfig.IntPropertyFnWithNamespaceFilter
|
||||
MaxCallbacksPerUpdateID dynamicconfig.IntPropertyFnWithNamespaceFilter
|
||||
EnableChasm dynamicconfig.BoolPropertyFnWithNamespaceFilter
|
||||
EnableCHASMSkipPersistence dynamicconfig.BoolPropertyFnWithNamespaceFilter
|
||||
EnableChasmNexusWorkflowOperations dynamicconfig.BoolPropertyFnWithNamespaceFilter
|
||||
ChasmNexusWorkflowOperationsRolloutPercent dynamicconfig.IntPropertyFnWithNamespaceFilter
|
||||
EnableCHASMCallbacks dynamicconfig.BoolPropertyFnWithNamespaceFilter
|
||||
@@ -505,6 +506,7 @@ func NewConfig(
|
||||
MaxCallbacksPerExecution: callback.MaxPerExecution.Get(dc),
|
||||
MaxCallbacksPerUpdateID: dynamicconfig.MaxCallbacksPerUpdateID.Get(dc),
|
||||
EnableChasm: dynamicconfig.EnableChasm.Get(dc),
|
||||
EnableCHASMSkipPersistence: dynamicconfig.EnableCHASMSkipPersistence.Get(dc),
|
||||
EnableChasmNexusWorkflowOperations: nexusoperation.EnableChasmWorkflowOperations.Get(dc),
|
||||
ChasmNexusWorkflowOperationsRolloutPercent: nexusoperation.ChasmWorkflowOperationsRolloutPercent.Get(dc),
|
||||
ChasmMaxInMemoryPureTasks: dynamicconfig.ChasmMaxInMemoryPureTasks.Get(dc),
|
||||
|
||||
Reference in New Issue
Block a user