From the documentation its not clear since documentation mentions ASYNC boolean is set to false by default and also says "Once endpoint is called, your function execution process will start asynchronously"
What does it do and how does it work if I want my functions to run asynchronously ?
An asynchronous execution means it's not executed right away. It gets queued and executed later. This means the response of create execution will have a status of waiting and no response/logs/error
So that means if I need the function to start execution immediately I mark ASYNC in createExecutiom as false .. Is that accurate ?
Ok and if an instance of that function is already running then ?
I receive multiple user sign ups and each triggers the same function that runs say for 5 secs. How would a call for immediate execution be handled
Synchronous executions run concurrently
Nice. Testing it right now. Will mark this as solved right after
Turning it to false causes a lot of function failures. I'll mark it solved since at least I understand how its meant to function. Will open another thread if I need help.
[CLOSED] Functions CreateExecution ASYNC flag does what exactly ?
Recommended threads
- Does 1.9.0 Self Hosted have MongoDB Atla...
I have been playing with the new 1.9.0 update and I am really excited for the MongoDB support. I wanted to ask though if at the current time Appwrite supports b...
- ClientException with SocketException: Cl...
hi <@564158268319203348> i have noticed this 500 status code in my function requests, it seems its not able to connect to the internet in the function as reque...
- significant increase in CPU usage with 1...
Hi, This is no big deal at all (as everything is working great so far), but I just saw that the update (from 1.8 to 1.9) consumes much more CPU than before (re...