Skip to content

Commit

Permalink
OSS-757 removes timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalHubatka committed Feb 21, 2024
1 parent 6d70c5f commit f867a8e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions rasa/core/actions/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions rasa/core/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion rasa/core/nlg/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}")
Expand Down

0 comments on commit f867a8e

Please sign in to comment.