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
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- TablesDB can't be used in Appwrite Funct...
I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build...