Back

Solved: Function sometimes does not execute and gets timed out

  • 0
  • Self Hosted
  • Functions
corax
6 Sep, 2023, 15:46

Hi,

Sometimes functions are not being executed and being timed out. Can this happen because of less resources or something?

TL;DR
The user is experiencing issues with their functions sometimes not executing and getting timed out. They suspect it might be due to low resources. The user confirms that they are self-hosted. They ask if high resource usage or unavailable resources could be the cause. The user also asks for the logs of `appwrite` and `openruntimes-executor`. They mention that most executions go fine, but only a few have this problem. Another user suggests that this issue could be caused by too many functions trying to execute simultaneously, which could be occupying all the workers. They provide a link to an explanation and recommend tracking the errors in both containers
corax
6 Sep, 2023, 15:46

Function sometimes does not execute and gets timed out

Binyamin
6 Sep, 2023, 16:01

Self-hosted?

corax
6 Sep, 2023, 16:03

Yes

corax
6 Sep, 2023, 16:03

Can this be due to high resource usage and resources not being available?

Binyamin
6 Sep, 2023, 16:05

What are the logs of appwrite and openruntimes-executor

Binyamin
6 Sep, 2023, 16:05

Yes

corax
6 Sep, 2023, 16:06

Well there are many executions per minute and most of them go fine, only few go like this.

Binyamin
6 Sep, 2023, 16:09

It could happened when too many function trying to execute at the same time occupying all workers. Here you can see some possible explanation. But it worth to track the errors in both containers I've listed above to eliminate all other causes.

corax
6 Sep, 2023, 16:12

Thank you, there are not any error logs in openruntimes-executor except this. Skipping runtimes stats loop due to error: Docker Error: EOF

and this one from appwrite, other are normal appwrite error, (user not logged in and etc..) [2023-09-06 16:09:59 *83.74] WARNING swoole_signalfd_event_callback(): read from signalfd failed, Error: Resource temporarily unavailable[11]

Binyamin
6 Sep, 2023, 16:13

So, yes this error is due to workers overload, you can see the details about it in the above issue

Binyamin
6 Sep, 2023, 16:14

What are your server specs?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more