Skip to content
Back

Appwrite Cloud Function runs forever, even exceeding 15min limit

  • 0
  • 4
  • Functions
  • Cloud
lucas
12 Oct, 2025, 06:03

It just keeps running, and there's no way to manually stop it.

TL;DR
The Cloud Function is running indefinitely, even past the 15-minute limit. The issue might be related to the worker crashing and restarting during the process, causing it to hang. The user will investigate further on worker crash/restart. The user plans to update the code to log elsewhere to help diagnose the issue in the future.
Darshan Pandya
12 Oct, 2025, 06:06

cc @Meldiron

13 Oct, 2025, 09:15

Thanks for bringing this up 🙌 cc <@1019617205220016128>

We will be trying to reproduce this next. <@607906105892405258> can you confirm with me if those executions did what they were supposed to? Also, is it still processing now? I am trying to differenciate between three possible problems: A) Execution never acutally started B) Execution is not respecting timeout C) Execution crashed, preventing from marking proper status (failed/succeeded)

13 Oct, 2025, 12:43

We haven't been able to repro this issue - function gets timed out within the appropriate set limit.. nor we could set an invalid timeout value like 0 or null. I suspect it has to do with worker crashing/restarting when the job is in progress which makes the process dangling. <@185460546336718859> could you investigate further on worker crash/restart if any? cc <@287294735054274560>

13 Oct, 2025, 14:58

Well its hard to tell because it happened in the middle of many other executions doing same job, so I'm not sure if they actually did their job. I can even see the logs because they are shown as Processing. Its also hard to tell if they are still running, because execution is supposed to end after 50 loops in the code. But my GB-Hour usage isn't that high compared to execution time (still running).

13 Oct, 2025, 14:58
13 Oct, 2025, 15:41

I updated code to log somewhere else, so if same issue happens, i might be able to tell.

14 Oct, 2025, 03:15

Same thing happened, and everything was fine. It executed without any errors

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