openfaas / of-watchdog

Reverse proxy for STDIO and HTTP microservices
MIT License
259 stars 115 forks source link

Support request for timeouts #103

Closed MuhammetDilmac closed 3 years ago

MuhammetDilmac commented 3 years ago

I have a function execution time during 35-40 minutes. When i try to run on my machine its working successfully. But deploy to openfaas and run async its not completed end return 502 error on callback (Running 1337.917547 second).

My callback response;

First;

POST / HTTP/1.1
Host: mycallbak
User-Agent: Go-http-client/1.1
Content-Length: 0
Date: Sun, 19 Jul 2020 11:05:16 GMT
X-Call-Id: fde2158a-d128-4d12-987b-e462afe44b45
X-Duration-Seconds: 1335.231629
X-Function-Name: myfunction
X-Function-Status: 502
Accept-Encoding: gzip
Connection: close
X-Forwarded-For: XXX.XX.XXX.XX

Second;

POST / HTTP/1.1
Host: mycallback
User-Agent: Go-http-client/1.1
Content-Length: 201
Content-Type: text/plain; charset=utf-8
Date: Sun, 19 Jul 2020 11:05:18 GMT
X-Call-Id: fde2158a-d128-4d12-987b-e462afe44b45
X-Duration-Seconds: 1.175109
X-Function-Name: myfunction
X-Function-Status: 500
Accept-Encoding: gzip
Connection: close
X-Forwarded-For: XXX.XX.XXX.XX

error finding function myfunction.: Get http://faas-swarm:8080/system/function/myfunction?namespace=: dial tcp 10.0.0.7:8080: connect: connection refused

Docker service logs;

resim

My configuration;

resim

Expected Behaviour

Function work must be completed and return

Current Behaviour

Function killed before the end

Possible Solution

I don't have any idea.

Steps to Reproduce (for bugs)

  1. Create function
  2. Add sleep 2100 second
  3. Add configuration timeouts;
    exec_timeout: 2h
    write_timeout: 2h
    read_timeout: 2h
  4. Run function async
  5. Function terminated

Context

There are many links that I need to pull data. It takes about 30-35 minutes to pull data from these. I cannot pull the data due to this error.

Your Environment

alexellis commented 3 years ago

Hi I'm sorry but we don't offer technical support through github. You'll need to register for Slack and talk to the community there.

I'd also recommend you read the documentation and troubleshooting guides. We do have a tutorial on how to configure timeouts.

Alex

alexellis commented 3 years ago

/msg: slack

derek[bot] commented 3 years ago

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

alexellis commented 3 years ago

/set title: Support request for timeouts