Back

function execution is stuck in 'processing'

  • 0
  • Functions
krunchy
21 Apr, 2023, 19:05

The execution was started 3 days ago, but still in the processing status. Attempted to restart the server, but the process is still stuck in that state and I am unable to create new processes, as they go into waiting status. How do I clear them?

TL;DR
User is experiencing an issue where function executions are stuck in the 'processing' state. They attempted to restart the server but the problem persists. Other executions in the queue may have also become ghost executions. The solution is to upgrade to version 1.3.x, as it fixes the problem with queues being cleared after restart. The user also mentions that they didn't try running another execution and asks how to clear the waiting status for new processes.
krunchy
21 Apr, 2023, 19:06

v1.2.1

Drake
21 Apr, 2023, 19:08

Attempted to restart the server, but the process is still stuck in that state It's probably a ghost execution now and not processing.

Anything in your appwrite-worker-functions logs?

krunchy
21 Apr, 2023, 19:14

just that it started

Drake
21 Apr, 2023, 19:29

how are you creating new executions? have you created a new execution since restarting?

krunchy
21 Apr, 2023, 19:31

Ah. I should have tried another execution. I saw those ones with waiting status and I didn't think to run another.

krunchy
21 Apr, 2023, 19:32

we can close this. Thanks.

Drake
21 Apr, 2023, 19:34

ya unfortunately, those other waiting ones may have become ghost executions too if they were in the queue and now the queue is cleared (due to the restart). 1.3.x fixes a problem with queues being cleared after restart

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