Should be a final ulitmate fix for request timeout issue (#4045)

* Try to fix timeout again

* Ops
This commit is contained in:
Louis Lam
2023-11-18 01:17:54 +08:00
committed by GitHub
parent 40d6a21453
commit f0975cd929
3 changed files with 9 additions and 1 deletions

7
db/patch-timeout.sql Normal file
View File

@@ -0,0 +1,7 @@
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
BEGIN TRANSACTION;
UPDATE monitor SET timeout = (interval * 0.8)
WHERE timeout IS NULL OR timeout <= 0;
COMMIT;