"Demo 4: Temporal Outage During an Execution" does not work, because the flask app (app.py) will quit with a RCPError("tcp connection refused") after approximately 5 seconds and therefore not show the location info after the restart of the server.
I managed to fix it by providing a RetryConfig to Client.connect:
RetryConfig(
initial_interval_millis=1000,
max_interval_millis=10000,
max_elapsed_time_millis=60000,
multiplier=2.0,
max_retries=10,
)
So now I have enough time to show the unresponsive UI and verify that the server is actually shut down. After restarting the server, the flask app will show the location info as expected.
"Demo 4: Temporal Outage During an Execution" does not work, because the flask app (
app.py) will quit with a RCPError("tcp connection refused") after approximately 5 seconds and therefore not show the location info after the restart of the server.I managed to fix it by providing a
RetryConfigtoClient.connect:So now I have enough time to show the unresponsive UI and verify that the server is actually shut down. After restarting the server, the flask app will show the location info as expected.