matrix-org / matrix-hookshot

A bridge between Matrix and multiple project management services, such as GitHub, GitLab and JIRA.
https://matrix-org.github.io/matrix-hookshot/
Apache License 2.0
283 stars 68 forks source link

Retry failed message sends #725

Open Half-Shot opened 1 year ago

Half-Shot commented 1 year ago

If we fail to send a message, we should backoff and retry. Disabling ratelimits on the bridge helps but nefarious 500 errors are always possible on certain homeserver configurations.

We have a MessageSender class and I am inclined to re-use it https://github.com/matrix-org/matrix-hookshot/blob/main/src/MatrixSender.ts#L48