STOP_AFTER_RECONSTITUTE=true

This commit is contained in:
alex.sharov 2023-01-11 10:14:59 +07:00
parent a886ba0192
commit 922b5754da

View File

@ -245,3 +245,19 @@ func StopAfterStage() string {
stopAfterStageFlag.Do(f)
return stopAfterStage
}
var (
stopAfterReconst bool
stopAfterReconstOnce sync.Once
)
func StopAfterReconst() bool {
stopAfterReconstOnce.Do(func() {
v, _ := os.LookupEnv("STOP_AFTER_RECONSTITUTE")
if v == "true" {
stopAfterReconst = true
log.Info("[Experiment]", "STOP_AFTER_RECONSTITUTE", writeMap)
}
})
return stopAfterReconst
}