I am writing a validation cloud function that performs multiple checks in sequence and when a check fails it writes error to DB and exits.
I exit using : return context.res
However for some reason function continues after the return statement and executes the remaining function.
I am using Dart 3.0. Can someone please confirm what's the correct way to ensure function execution stops.
Thanks
It's not Appwrite specific. A return statement ends the execution of a function 🧐
I know.. Felt dumb just asking the question. Let me redo the function, its quite big so also often runs into the "curl internal error fails" .. Will update once I know more.
[Closed] Stopping a cloud function
Recommended threads
- Invalid query: Query on attribute has gr...
I cannot view the table within the Console
- Functions not executing after usage rese...
Hi team, Last month my project hit 100% usage and functions stopped working (expected). Now the new month has started and usage has reset, requests are going ...
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...