Instead of retrying infinitely in the LeadershipState, we are now spawning a
background appender and hand the announce leadership message over. Additionally,
we are now monitoring the health of the appender task to escalate potential
failures which would then result in shutting the PP down and let the PPM handle
the situation.
Instead of retrying infinitely in the LeadershipState, we are now spawning a background appender and hand the announce leadership message over. Additionally, we are now monitoring the health of the appender task to escalate potential failures which would then result in shutting the PP down and let the PPM handle the situation.
This fixes https://github.com/restatedev/restate/issues/2333.