Hi everyone,
I'm currently working with Appwrite's database triggers, specifically for document creation events.
I've encountered a potential issue and was hoping to get some clarification or advice.
It seems that if a database trigger event fails (for example timeout), I don't receive a reference to the original document that triggered the event, nor do I get the document data itself.
This makes it impossible to implement a retry mechanism or to manually handle the failed event, as I have no way of knowing which document failed.
This is a critical feature for my use case, as I need to ensure that the actions in my triggers are reliably executed.
Am I missing something, or is there a recommended workaround for this scenario?
Any help or insights would be greatly appreciated.
Thanks in advance! Matze
@Steven I don't really want to write directly and disturb you, but I need a professional opinion here. thank you for your help.
No idea anybody ?
@alnes hii, just to clarify your issue you are triggering a function using a database event. but facing issues when event does not get triggered? if somehow event does not get triggered you would like a retry mechanism?
for example timeout
not sure what you mean by this 🤔
if a document is not created due to some error, a trigger wont be fired
I presume they're talking about a case where the Document was created, and then the triggered Function Execution times out
exatly. this dont happen often , but it happends
It was actually the case that there was a function runtime timeout. The function was triggered by a databases..tables..rows.*.create event. The admin team should be added with this function to the row's permissions, as this isn't possible on the client side. It would be critical if it didn't work securely or if errors couldn't be handled because the context is missing. I've now solved this with a client-side sync function. If problems arise, I can react. But it's not the most attractive option, in my opinion. I also don't understand the true purpose of events if they don't provide context when errors occur.
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...