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
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Create a new paid tier
Current pricing seems reasonable enough about what is someone getting for 25$. But for some people most of these resouces are getting wasted. Like the bandwidt...
- [Bug] Appwrite Auth User Prefs
User prefs are decoded as blank although there are plenty of data and add preference button not working in this case