New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X-Duration-Seconds header is not set on function timeout #77
Comments
ewilde
changed the title
X-Duration-Seconds header is not set on function timeout
Dec 9, 2019
X-Duration-Seconds
not set on function timeout
This may be expected behaviour, if it's not I guess the following high level fix: Either
Or
|
ewilde
added a commit
to ewilde/nats-queue-worker
that referenced
this issue
Dec 9, 2019
Set X-Duration-Seconds header when original function call exceeds timeout. Fixes openfaas#77 Signed-off-by: Edward Wilde <ewilde@gmail.com>
11 tasks
ewilde
added a commit
to ewilde/nats-queue-worker
that referenced
this issue
Dec 9, 2019
Set X-Duration-Seconds header when original function call exceeds timeout. Fixes openfaas#77 Signed-off-by: Edward Wilde <ewilde@gmail.com>
alexellis
pushed a commit
that referenced
this issue
Dec 10, 2019
Set X-Duration-Seconds header when original function call exceeds timeout. Fixes #77 Signed-off-by: Edward Wilde <ewilde@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the original function invocation takes longer than than the functions combined
read_timeout
andwrite_timeout
theX-Duration-Seconds
header is not set on the callback functionExpected Behaviour
X-Duration-Seconds
should be set on the callback functionSteps to Reproduce (for bugs)
a
, make is sleep for 10 secondsb
that prints theX-Duration-Seconds
headera
i.e. curl http://127.0.0.1:8080/async-function/a -d 'hello' -H 'X-Callback-Url: http://gateway:8080/function/b'The text was updated successfully, but these errors were encountered: