I have a function that syncs my documents from a collection using the cursor methods of first fetching the documents from appwrite and then syncing those to Typesense in batches.
Due to the amount of documents in my collection this execution takes longer than 15 minutes. How can I solve this?
Summary
Problem: Function execution is timing out due to syncing a large number of documents from Appwrite to Typesense in batches.
Solution: Change the environment variable `_APP_FUNCTIONS_TIMEOUT` to increase the function timeout. If self-hosting, follow the guide at https://appwrite.io/docs/advanced/self-hosting/environment-variables#functions