Hello Appwriters! I would like to know if there is a way to prioritize Function execution or set a priority for the execution; like rules in firewalls....
if not, what is the current execution order set by the engine... to overide that, i have create a sleep funtion in each function i need to delay its execution! Thanks
i just test the deployment order and it looks like the first deployed will be at a higher execution priority, please confirm on server high load and high traffic will be consistent or shall i consider sleep function.
I wouldn't rely on that. What do you need?
i have function to validate financial transactions and another one for push notification and client side logs... the fact is on event trigger in the financial transaction i m listen to creat and update and the log should listen to those transaction to logs them... creat then update the same document => the log will be written with the last doc status.. i need the first one is Pending until is Completed...
i have a payment gateway on the server side; if the admin allows auto funding for the user the payement will be processed and credit to the client account directly if not it will be pending until review and approval. the pay triggers => Pending status the approve triggers => Completed status
the issue is the logs function is writing both transaction with Completed ... and not having the time to bind the first one and inject the second one.
check the transaction is injected in the logs twice as completed when i move the logs function at first installed function this is resolved.. i beleive i have to inject a sleep function in all the function according to their prioritiy
sorry im a little lost between the functions, logs, etc.
so you have two functions:
- validate - triggers on document create/update, validates stuff, and then updates the document
- push/log - triggers on document create/update and pushes/logs
is that right?
No worries at all, your support is highly valuable. Yes this is exactly what i have
Recommended threads
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!