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
- Generate CSR
How do I generate a CSR for my domain host? They are asking me to generate one for my hoosting here on appwrite
- Critical Issue
<#1102936099745177700> <#1072905050399191082> <#564161373148414012> Hello Appwrite Support Team, I am writing to report a persistent issue with custom domain ...
- Appwrite Push Notifications: "Unknown er...
Hi all, I'm running into an issue with Appwrite push notifications in my web project. When I try to manually send a notification to a user from the Appwrite we...