Hello again, sorry if it is a noob question, but:
I have restarted my PC, and my functions had stopped working and don't start running again automatically.
I mean, I have two functions that are scheduled. And they are not starting automatically after restart my PC Is that normal behaviour?
Ya...the schedule is put in redis. It's possible that was cleared out when redis was restarted. Updating the function schedule to something else and then back should kickstart it again.
I think we're working on improving this to not rely on redis, so stay tuned!
So to make it automatically, I probably need to create an script that update that, and runs on linux startup after appwrite is running?
Sure ya
Okay thank you.
I'm trying so hard to take advantage of all the tools that appwrite give us. (I really like the platform, and want to build everything on top of appwrite) But sometimes functions are a bit hard.
Thank you so much Steven for all the help.
Yes, we understand. That's why we're focusing on it for our next release
Thank you. Do you think is a nice idea to use functions to make some logic over the appwrite databases, or should I create scripts on a separate container?
I would use in built database APIs as much as possible and then try to use functions for anything else
Can you elaborate a bit on that, please?
I'm worried about using functions for the wrong purposes.
Haha. Generally, you need a function if you want any sort of custom logic.
There's a case where you want some fields read only but others writeable. You may not need a function for that. One way to do it is to use separate collections. a read only one and a writeable one.
Oh I understand.
I'm using functions right now to create a CSV and upload it to buckets.
And another function to send some data to a remote API.
What do you think?
My question is, creating functions for that is good, or should I create that as an external script?
Function is fine
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...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...