Error: Synchronous function execution timed out. Use asynchronous execution instead, or ensure the execution duration doesn't exceed 30 seconds. Error Code: 408
I have a simple function (call it: abc) which returns some attribute from a collection bty taking another as input. ABC is polled by a cron that runs every minute in dev and every hour when idle (usually hits function ABC 15-25 times in a go whenever it runs.
ABC is also polled at times from frontend, about 20 times with interval of 6 secs during some operations.
The current timeout of this is 30 s. The execution of this function sometimes randomly times out.
From my logic it's neither that computationally heavy (since it just returns a simple attribute) nor is the polling frequency that high currently. What could be the issue and how to make the timeout more predictable.
Recommended threads
- Failed function deployments
I am using appwrite 1.8.0 (self hosted) and trying to manually deploy a python function. I am using appwrite from 0.x and went through multiple migrations. So ...
- Python-ml-3.12
Hi, when this runtime will be available for the cloud. I could see the runtimes repo has this added to Runtimes.php but I'm not able to use it to run locally or...
- Function Building show 500 Error
Region: sfo Temple: Starter Function Runtime: Nodejs 22 What happened? Before 2 minutes it show ‘server error.","code":500,"version":"0.7.24"}’ after it show c...