Skip to content
Merged
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
3 changes: 3 additions & 0 deletions src/agentex/lib/core/temporal/workers/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def __init__(
health_check_port: int | None = None,
plugins: list = [],
interceptors: list = [],
metrics_url: str | None = None,
):
self.task_queue = task_queue
self.activity_handles = []
Expand All @@ -138,6 +139,7 @@ def __init__(
self.health_check_port = health_check_port if health_check_port is not None else EnvironmentVariables.refresh().HEALTH_CHECK_PORT
self.plugins = plugins
self.interceptors = interceptors
self.metrics_url = metrics_url

@overload
async def run(
Expand Down Expand Up @@ -172,6 +174,7 @@ async def run(
temporal_client = await get_temporal_client(
temporal_address=os.environ.get("TEMPORAL_ADDRESS", "localhost:7233"),
plugins=self.plugins,
metrics_url=self.metrics_url,
)

# Enable debug mode if AgentEx debug is enabled (disables deadlock detection)
Expand Down
Loading