Back

Function execution end

  • 0
  • Flutter
  • Functions
antonio84
3 Sep, 2023, 15:28

Should I poll getExecution to know when a function has finished the execution?

TL;DR
To ensure that a function execution is completed and get the output in the response, set async=false when calling createExecution. This will make the request wait for the function to finish executing. There is no need to poll getExecution to check for completion.
Meldiron
3 Sep, 2023, 15:30

Heyy, either that, or when calling createExecution, set async=false. That way the request waits for it to finish, and you get function output in the response

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