paritytech / opstooling-js

Shared functionality for OpsTooling projects
https://www.npmjs.com/package/@eng-automation/js
Apache License 2.0
0 stars 1 forks source link

Handle temporary disconnections in the `runtimeRestarter` #65

Closed rzadp closed 4 months ago

rzadp commented 4 months ago

Some apps using the runtimeRestarter are prepared to handle temporary disconnections to the chain.

However, the current implementation of runtimeRestarter will cause an unhandled error and a crash in such a case.

I'm proposing to not throw an error on those disconnections, which are quite frequent. The checks will continue when the socket reconnects.