diff --git a/agents-api/agents_api/env.py b/agents-api/agents_api/env.py index 20e5ac494..2e7173b17 100644 --- a/agents-api/agents_api/env.py +++ b/agents-api/agents_api/env.py @@ -115,11 +115,13 @@ "TEMPORAL_ACTIVITY_AFTER_RETRY_TIMEOUT", default=30 ) + def _parse_optional_int(val: str | None) -> int | None: if not val or val.lower() == "none": return None return int(val) + # Temporal worker configuration temporal_max_concurrent_workflow_tasks: int | None = _parse_optional_int( env.str("TEMPORAL_MAX_CONCURRENT_WORKFLOW_TASKS", default=None)