Increasing timeout-time

Hey everyone

How can I increase the timeout-time on rasa-x. On my local pc I could just adapt the code line down below in the console.py file:

DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS = 25  

How can I change this within rasa-x?

Help would be highly appreciated!

Best regards

Tobias Küng

HI Tobias,

Are you running under docker-compose or another install method. If you’re using docker-compose, then create a docker-compose.override.yml file with the following:

rasa-production:
  environment:
    - DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS=25

Greg

1 Like

Hey @stephens

I have my docker-compose.override.yml file as below :

version: '3.4'
services:
  app:
    image: 'rasa/rasa-sdk:latest'
    volumes:
      - './actions:/app/actions'
    expose:
      - '5055'
    depends_on:
      - rasa-production

Where do I add ,

rasa-production:
  environment:
    - DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS=25

Please help …

Add the following to the bottom of your existing file. Make sure rasa-x is indented 2 spaces like app:. Then restart Rasa X: docker-compose restart rasa-x

  rasa-x:
    environment:
      - DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS=25
1 Like

Hey @stephens,

If I’m just using the docker deploy, without rasa X can I include the lines in docker-compose.yml itself ?

Trying to put this to heroku and accesss via telegram

Yes. I forgot you mentioned you are running this locally. For a server install, you typically don’t want to modify docker-compose.yml but it works fine.

Hey @stephens,

Thank you. Okay, That means there is no need for docker-compose.override.yml Ifor server install.

Also, I was trying to deploy my bot to heroku…

The plan is to deploy action server seperately…and the

Dockerfile for it is

# Extend the official Rasa SDK image
FROM rasa/rasa-sdk:1.9.0

# Use subdirectory as working directory
WORKDIR /app

# Copy any additional custom requirements, if necessary (uncomment next line)
COPY actions/requirements-actions.txt ./

# Change back to root user to install dependencies
USER root

RUN apt-get update

RUN apt-get -y install gcc

# Install extra requirements for actions code, if necessary (uncomment next line)
RUN pip install -r requirements-actions.txt

# Copy actions folder to working directory
COPY ./actions /app/actions

# By best practices, don't run the code with root user
USER 1001

Then have the bot on another heroku app…

Is this possible according to you ??

Yes, it’s possible.