Function gets stuck, doesn't terminate. It executes everything but then throws 30s sync timeout.
- 0
- Self Hosted
- Functions
I have random occurrences of sync function executions not terminating. I added a test log message right before the return res.json(response, 200, headers); (last line of the function).
While logs don't show in the exeucution view in Appwrite Console, because there it only shows the timeout error (see screenshot), they do show in Sentry. And that test log is being sent, which means the function executes until that line before return statement.
Also, the actual database operations of this function get done.
So it basically does everything it should, but somewhere (on the client perhaps?) completion of the function is not detected. And the 30s sync timeout error gets thrown.
Self-hosted setup with server specs: 4 vCPU 8 GB RAM 40 GB Disk local
Function is not heavy, some db operations. If successful, it finishes in approx. 500ms.
Recommended threads
- Invalid query: Query on attribute has gr...
I cannot view the table within the Console
- Functions not executing after usage rese...
Hi team, Last month my project hit 100% usage and functions stopped working (expected). Now the new month has started and usage has reset, requests are going ...
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...