# TRD GSS Safe Mode ## Update Config ```plantuml Cron -> GSS: Update Config GSS -> Redis: Set Config ``` ## Internal Worker ```plantuml GSS -> Redis: Get Config Redis -> GSS: Return Config GSS -> GSS: Set Config GSS -> GSS: Delay &config ... GSS -> Redis: Get Config Redis -> GSS: Return Config GSS -> GSS: Set Config GSS -> GSS: Delay &config ``` ## API Design This endpoint will hit by CRONJOB | URL | {{base_url}}/v2/config/timeout | | -------- | -------- | | Method | PUT | |Body| ``` {"timeout" : "100s"} ``` ||```suffix can be [s, m, h]```| ## Changes Plan ### .ENV Will add 1 config for delay time for redis request to update the config sync.timeout ### SetConfig() Will add 1 func to update config data, will implement Mutex to avoid data race