Uninett / Howitz

1 stars 3 forks source link

Test connection to Zino server every X seconds #145

Closed podliashanyk closed 4 days ago

podliashanyk commented 2 weeks ago

A follow up for #116 to ensure that re-connect is always performed after a lost connection to Zino server.

This is fixed in zinolib 1.2.0, that is: there is a new method zinolib.controllers.zino1.Zino1EventManager.test_connection() that will raise a TimeoutError if the server is not reachable. Howitz will have to run the method and do something with the timeout as per #115.

Curitz checks the connection every 60 seconds, this is hard coded.

Originally posted by @hmpf in https://github.com/Uninett/Howitz/issues/116#issuecomment-2160697296