bartongroup / slivka

http://bartongroup.github.io/slivka/
Apache License 2.0
7 stars 3 forks source link

Handle database connection errors #102

Closed warownia1 closed 2 years ago

warownia1 commented 3 years ago

Currently, database connection related exceptions are not handled at all. When mongodb is not available the application hangs until ServerSelectionTimeoutError is thown causing application crash. Possible solution is to greatly reduce the connection timeout on the REST server side to notify clients of any issues faster. Scheduler should catch connection errors and retry at the later time.