# 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
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.