-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📚 Documentation: Updating Document via Cloud Function runs with Event [document.update] in loop #3025
Comments
I can imagine there are multiple ways to prevent it. What I have seen people doing in the community is to have To prevent the loop, in the function you can check how big a difference between |
is there way to stop function if it runs in loop? |
To stop a function, make sure you don't update the document again. The best solution would be to do the check right at the top of your function - if the difference between |
createdAt updatedAt is something that should have been available with appwrite. Otherwise, the best example is provided, instead of users constantly trying to make mistakes。 After 2 days of experience, I feel sorry for the 22k github stars, and from the user's point of view, the development is inefficient and frustrating. |
@OHeroJ, thanks for your feedback. 🙏 These attributes should be available by default as of 0.15.0! @anandsubbu007, do you have any other questions or can this issue be closed? |
Closing due to inactivity and since we have |
💭 Description
when i try to alter the data which is created or updated via event trigger.
it runs in loop.
how to prevent it from running in loop
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: