From f34dfb836f09a8ef0a79546a83a45427f3cb3bd1 Mon Sep 17 00:00:00 2001 From: Michal Hubatka Date: Tue, 20 Feb 2024 10:01:50 +0100 Subject: [PATCH] OSS-757 removes timeouts --- rasa/core/actions/action.py | 2 -- rasa/core/agent.py | 2 -- rasa/core/nlg/callback.py | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/rasa/core/actions/action.py b/rasa/core/actions/action.py index 8c511100916e..a13556047071 100644 --- a/rasa/core/actions/action.py +++ b/rasa/core/actions/action.py @@ -17,7 +17,6 @@ import rasa.core from rasa.core.actions.constants import DEFAULT_SELECTIVE_DOMAIN, SELECTIVE_DOMAIN from rasa.core.constants import ( - DEFAULT_REQUEST_TIMEOUT, COMPRESS_ACTION_SERVER_REQUEST_ENV_NAME, DEFAULT_COMPRESS_ACTION_SERVER_REQUEST, ) @@ -780,7 +779,6 @@ async def run( response: Any = await self.action_endpoint.request( json=modified_json if modified_json else json_body, method="post", - timeout=DEFAULT_REQUEST_TIMEOUT, compress=should_compress, ) if modified_json: diff --git a/rasa/core/agent.py b/rasa/core/agent.py index 47e3360f6a5b..e672aba18d9b 100644 --- a/rasa/core/agent.py +++ b/rasa/core/agent.py @@ -12,7 +12,6 @@ from rasa.core import jobs from rasa.core.channels.channel import OutputChannel, UserMessage -from rasa.core.constants import DEFAULT_REQUEST_TIMEOUT from rasa.core.http_interpreter import RasaNLUHttpInterpreter from rasa.shared.core.domain import Domain from rasa.core.exceptions import AgentNotReady @@ -118,7 +117,6 @@ async def _pull_model_and_fingerprint( async with session.request( "GET", model_server.url, - timeout=DEFAULT_REQUEST_TIMEOUT, headers=headers, params=params, ) as resp: diff --git a/rasa/core/nlg/callback.py b/rasa/core/nlg/callback.py index d997f6ace092..abc5107211ea 100644 --- a/rasa/core/nlg/callback.py +++ b/rasa/core/nlg/callback.py @@ -88,7 +88,7 @@ async def generate( ) response = await self.nlg_endpoint.request( - method="post", json=body, timeout=DEFAULT_REQUEST_TIMEOUT + method="post", json=body ) logger.debug(f"Received NLG response: {json.dumps(response)}")