Skip to content

Demo #4 does not work out-of-the-box #8

@thevogoncoder

Description

@thevogoncoder

"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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions