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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...