Skip to content

Commit a37c93b

Browse files
filintodacroca
andauthored
allow host only to be changed
Co-authored-by: Albert Callarisa <[email protected]> Signed-off-by: Filinto Duran <[email protected]>
1 parent b4b83d3 commit a37c93b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

durabletask/internal/shared.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def get_default_host_address() -> str:
4242

4343
# Host/port split overrides
4444
host = os.environ.get("DAPR_GRPC_HOST") or os.environ.get("DAPR_RUNTIME_HOST")
45-
port = os.environ.get("DAPR_GRPC_PORT")
46-
if host and port:
45+
if host:
46+
port = os.environ.get("DAPR_GRPC_PORT", "4001")
4747
return f"{host}:{port}"
4848

4949
# Default to durabletask-go default port

0 commit comments

Comments
 (0)