pendulum-chain / pendulum-squids

The subsquid squids we use for Pendulum/Amplitude/Foucoco.
GNU General Public License v3.0
0 stars 0 forks source link

Reset websocket connection if syncing fails #65

Closed TorstenStueber closed 5 months ago

TorstenStueber commented 5 months ago

We learned that the indexer might just stop syncing if the websocket connection to our RPC node hangs.

This can be avoided by setting a timeout for the connection. If the indexer recognizes that it cannot sync anymore, it will then restart the connection.

Here is documentation about the API that will allow to set this timeout.

Also see this screenshot:

Screenshot 2024-06-05 at 08 25 11
TorstenStueber commented 5 months ago

@pendulum-chain/product we should give this high priority. Very simple fix.