Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/launchpad/worker/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class WorkerConfig:
health_check_file_path: str
max_child_task_count: int
pod_name: str
worker_rpc_port: int
push_mode: bool
push_timeout_sec: int

Expand Down Expand Up @@ -61,12 +60,6 @@ def get_worker_config() -> WorkerConfig:
)

pod_name = os.getenv("LAUNCHPAD_WORKER_POD_NAME", "")
try:
worker_rpc_port = int(os.getenv("LAUNCHPAD_WORKER_RPC_PORT", "50052"))
except ValueError:
raise ValueError(
f"LAUNCHPAD_WORKER_RPC_PORT must be a valid integer, got: {os.getenv('LAUNCHPAD_WORKER_RPC_PORT', '50052')}"
)
push_mode = os.getenv("LAUNCHPAD_WORKER_PUSH_MODE", "false") == "true"
try:
push_timeout_sec = int(os.getenv("LAUNCHPAD_WORKER_PUSH_TIMEOUT_SEC", "5"))
Expand All @@ -82,7 +75,6 @@ def get_worker_config() -> WorkerConfig:
health_check_file_path=health_check_file_path,
max_child_task_count=max_child_task_count,
pod_name=pod_name,
worker_rpc_port=worker_rpc_port,
push_mode=push_mode,
push_timeout_sec=push_timeout_sec,
)
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_worker_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def test_valid_config(self):
health_check_file_path=DEFAULT_HEALTH_CHECK_FILE_PATH,
max_child_task_count=DEFAULT_MAX_CHILD_TASK_COUNT,
pod_name="",
worker_rpc_port=50052,
push_mode=False,
push_timeout_sec=5,
)
Expand Down
Loading