Code Monkey home page Code Monkey logo

Comments (9)

alexellis avatar alexellis commented on May 31, 2024

Hi thanks for raising this issue and for your interest.

IMHO f.ExecTimeout != 0 seems like a bad idea, we should use Golang durations.

I would suggest we add validation in the function that aborts the process if "0s" is set in the code.

Alex

from of-watchdog.

ryskiwt avatar ryskiwt commented on May 31, 2024

Hi, alexellis. Thank you for your reply.

Why should the function abort if "0s" is set?
README says timeout will be disabled if 0 is set.

Exec timeout for process exec'd for each incoming request (in seconds). Disabled if set to 0.

Is README necessary to be fixed?

from of-watchdog.

alexellis avatar alexellis commented on May 31, 2024

The string says 0 not 0s.

Alex

from of-watchdog.

MuhammetDilmac avatar MuhammetDilmac commented on May 31, 2024

@alexellis i set to 0 but error message given to 0s

functions:
  my-function:
    lang: ruby-http-json
    handler: ./my-function
    image: my-function:latest
    environment:
      exec_timeout: 0

and it's my error;

my-function.1.uy6lq9a36zho@openfaas    | 2020/07/18 19:25:21 Upstream HTTP request error: Post http://127.0.0.1:3000/: context canceled
my-function.1.uy6lq9a36zho@openfaas    | 2020/07/18 19:25:21 Upstream HTTP killed due to exec_timeout: 0s

from of-watchdog.

alexellis avatar alexellis commented on May 31, 2024

Why would you set the timeout to 0 seconds, it makes absolutely no sense?

from of-watchdog.

alexellis avatar alexellis commented on May 31, 2024

If you're trying to get an unlimited timeout, then you may be barking up the wrong tree, instead, set it as high as you dare - i.e. 10m or 2h

from of-watchdog.

alexellis avatar alexellis commented on May 31, 2024

/set title: Support question on unlimited timeouts

from of-watchdog.

alexellis avatar alexellis commented on May 31, 2024

/msg: slack

from of-watchdog.

derek avatar derek commented on May 31, 2024

--
Join Slack to connect with the community
https://docs.openfaas.com/community

from of-watchdog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.