paritytech / bench-bot

ISC License
9 stars 19 forks source link

Only restart the app after the current event finishes #85

Closed joao-paulo-parity closed 2 years ago

joao-paulo-parity commented 2 years ago

Move mutex to the event handlers so that the app is only restarted (#84) when the current events have been processed. This avoids having some relevant work being stopped off halfway due to some unrelated server failure.

Not having this might not be a problem at the moment because we're supposed to be blocking the application while some event is being executed (#68). In any case it's better to have it.