Comments (9)
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.
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.
The string says 0
not 0s
.
Alex
from of-watchdog.
@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.
Why would you set the timeout to 0 seconds, it makes absolutely no sense?
from of-watchdog.
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.
/set title: Support question on unlimited timeouts
from of-watchdog.
/msg: slack
from of-watchdog.
--
Join Slack to connect with the community
https://docs.openfaas.com/community
from of-watchdog.
Related Issues (20)
- of-watchdog always uses Transfer-Encoding: chunked despite having a valid and accurate Content-Length available HOT 6
- Documentation - missing 'mode' option description HOT 1
- Documentation - missing mode parameter HOT 2
- Wrong implementation of mode serializing HOT 5
- Got Error "Error scanning stdout: bufio.Scanner: token too long" HOT 1
- Outdated link to Classic Watchdog
- Custom HTTP probes create too much noise in logging
- When prefix_logs="false" is set, % signs logged by the function are interpreted as fmt.Printf verbs HOT 3
- Use of-watchdog for Docker template running a C/C++ function HOT 3
- Upstream HTTP killed due to exec_timeout: 10m0s, but it's after a minute HOT 4
- panic due to SIGSEGV while killing function process in streaming mode HOT 1
- Update GitHub Actions and Dockerfile to use Go 1.18
- Function readiness check HOT 1
- Log "Limited" appearing at the rate of a readiness check
- function custom readiness checking not working as documented HOT 2
- Support request (need more info) HOT 6
- Requesting alternative to setting maximum buffer size HOT 6
- where is of-watchdog image on docker hub? HOT 1
- Hiding URL parameters in watchdog logs HOT 3
- problem with the 0.9.13 arm64 image HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from of-watchdog.