Closed tomaszsluszniak closed 1 year ago
Hi @tomaszsluszniak
Could you please take some time to fill out the issue template? That makes it a lot easier for us to understand your problem.
Did you already look at: https://docs.openfaas.com/tutorials/expanded-timeouts/
The book Serverless for Everyone Else also has a chapter on timeouts and asynchronous functions.
Regards Han
Hi @welteki
thanks for the response. I edited the issue description.
Are these expanded timeouts also applicable for faasd
? If yes, how to set them?
Hi @tomaszsluszniak Han already answered the question.
The configuration of faasd is covered in the linked eBook.
This isn't an issue with the watchdog.
Alex
/lock: resolved
Hi, I developed a python function to run ansible playbooks. Some of them are long-running operations, that's why I increased the
exec_timeout
to10m
. The function is calling as anasync
function. For testing purposes, I created a simple playbook that has only apause
task (sleep for 5 min). My intention was to receive information after the playbook is finished, so I passed theX-Callback-Url
header.Current Behaviour
I set the function
exec_timeout
to10m
, but the callback URL is calling after a minute from the function execution, and the function is still executed. Why is that? How to deal with the function timeouts?Here is a function execution log: It started at 20:17:05, and the HTTP request error appeared at 20:18:02
Here is also python http.server log (callback is sent here)
Expected Behaviour
I expect that the callback URL will be called after the function is finished.
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
n/a
faasd
Linux Ubuntu 22.04