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
- Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- Missing Invoice
Hi! I need help with billing on my account (marelu@gmail.com). I have never received a single invoice by email. My organization has been on the Pro plan since...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...