
I have a function that creates documents, and sometimes it fails with timeout error, no idea why. But it's not a problem, the problem is when this function fails appwrite automatically re-executes this function again. Why? It causes duplication in collections

please suggest an example how to remove duplicates by some attribute, e.g. email

You sure you did not accidentally trigger it again? Cause normally appwrite does not automatically re-execute the function.
How is your function triggered? Automatically (and if so, how) or manually (e.g. by a user)?

And if it fails because of timeout, just set the timeout value higher:

And don't forget to do the same in your appwrite.json if you deploy with appwrite cli
Recommended threads
- Unknown origin using Capacitor
I’m using capacitor to create native apps from angular source code. It was working a month ago, but now when I try to access appwrite through the app I get “Inv...
- starter-for-nextjs abandoned
I checked out the start-for-nextjs repo in appwrite and it seems like no one is updating it timely as the next version in it is 14.2.x and currently the latest ...
- Website warning message incorrect
The site says "Choose which projects to keep before **Sep 1, 2024** or upgrade to Pro. Projects over the limit will be blocked after this date." The date is wr...
