mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
b8c3703c2f
The shutdown handler calls `checkAllNotesRevision` on a 100 ms interval. If the database connection is broken, this will return an error. Previously, this error was effectively ignored and resulted in an endless loop printing out the error message every 100 ms. This improves the error handling by terminating the process with a nonzero exit code when an error was encountered 30 times. The loop interval is also increased to 200 ms, giving the database 6 seconds total time to recover in case of intermittent issues. Signed-off-by: David Mehren <git@herrmehren.de> |
||
---|---|---|
.. | ||
banner | ||
css | ||
docs | ||
fonts | ||
icons | ||
js | ||
uploads | ||
vendor | ||
views | ||
.eslintrc.js | ||
default.md | ||
screenshot.png |