Skip to content

fix(api): drop dead TEMPORAL_API_HOST/PORT settings#59

Open
Chouffe wants to merge 1 commit into
mainfrom
arthur/drop-host-port-settings
Open

fix(api): drop dead TEMPORAL_API_HOST/PORT settings#59
Chouffe wants to merge 1 commit into
mainfrom
arthur/drop-host-port-settings

Conversation

@Chouffe

@Chouffe Chouffe commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove Settings.host and Settings.port from api/src/temporal_model/api/settings.py — they were never read by any entry point (Dockerfile CMD, make serve, make run-gpu all set the bind on the uvicorn CLI), so TEMPORAL_API_HOST/TEMPORAL_API_PORT silently did nothing.
  • Remove HOST, PORT from the README configuration list (api/README.md).
  • Drop the matching default assertion in api/tests/test_settings.py.

The bind stays a deployment concern (CLI flags / image CMD), per option 1 in the issue. The dated design spec (docs/specs/2026-06-02-api-service-design.md) is left untouched as a historical record.

Closes #54

Test Plan

  • make test in api/ — 164 passed, 1 skipped
  • make lint in api/ — clean
  • grep -rn TEMPORAL_API_HOST\|TEMPORAL_API_PORT — no references left outside the dated spec

Settings.host and Settings.port were never read by any entry point —
every bind is set on the uvicorn CLI (Dockerfile CMD, Makefile targets) —
so setting TEMPORAL_API_PORT silently did nothing. Remove the fields and
drop HOST/PORT from the README configuration list; the bind stays a
deployment concern.
@Chouffe Chouffe requested a review from MateoLostanlen June 12, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

api: TEMPORAL_API_HOST/PORT settings are dead config — never read by any entry point

1 participant