Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions src/agentex/lib/core/temporal/workers/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(
task_queue,
max_workers: int = 10,
max_concurrent_activities: int = 10,
health_check_port: int = int(os.environ.get("HEALTH_CHECK_PORT")),
health_check_port: int | None = None,
plugins: list = [],
):
self.task_queue = task_queue
Expand All @@ -121,7 +121,7 @@ def __init__(
self.max_concurrent_activities = max_concurrent_activities
self.health_check_server_running = False
self.healthy = False
self.health_check_port = health_check_port
self.health_check_port = health_check_port if health_check_port is not None else EnvironmentVariables.refresh().HEALTH_CHECK_PORT
self.plugins = plugins

@overload
Expand Down