temporalio / sdk-core

Core Temporal SDK that can be used as a base for language specific Temporal SDKs
MIT License
250 stars 68 forks source link

[Bug] Ephemeral CLI based server may fail to start if UI is enabled #767

Open bergundy opened 3 weeks ago

bergundy commented 3 weeks ago

The CLI defaults the UI port to the gRPC port +1000. The SDK allocates the gRPC port at random and could allocate a port that when adding 1000 to it would overflow the maximum port number.

To solve this the SDK should explicitly set UI port for ephemeral temporal CLI based server if UI is enabled.