I would like to find a way to accomplish the following: Once a day a job should be executed that moves all documents older than 30 days from one collection to another collection and deletes personal user data. Is there a way to do this with an appwrite function? Or has anyone ever done something similar?
yes you can set cron schedules for functions pretty easily from the console
So the correct way would be to first write a function locally and test it with the appwrite-cli and then install the function on the appwrite server, which then executes this function via cron execution?
Yes
Well, with appwrte CLI you can't test it, just deploy
So you will need to test in the server. You could use a separate instance (for example a local instance)
Ok but i can test it then with the server "node-appwrite" package.
Sorry, what do you mean?
My Aplication Server with the appwrtite node Package installed
Appwrite uses a different way/template, so I recommend testing it directly in an Appwrite instance (it could be a local one in your computer)
Or you could use Appwrite cloud
Ok i should install appwrite Docker instanz and test the function there
Sorry one more question: Is rate limiting any problem when the function is running in the Appwrite instanz?
I think not
Ok Thank you very much and have a nice day
[SOLVED] Cron job
Recommended threads
- Appwrite behind Nginx, locale.get() retu...
I have Appwrite behind Nginx and followed this guide to forward the real user IP: https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243 ...
- [BUG] After 1.8.0 no Screenshots of Site...
Hello, I'm facing this bug. When I deploy it works properly but screenshots are not displayed. If I open the image this is the result: URL: `https://appw.xxxx....
- CORS error using the Locale API from a b...
When I call the `GET /v1/locale` API with JS in a browser the GET request fails with `CORS Allow Origin Not Matching Origin`. Requests to `GET /v1/databases/.....