
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?

If self-hosting, you can increase the timeout. See - https://appwrite.io/docs/advanced/self-hosting/environment-variables#functions
Variable - _APP_FUNCTIONS_TIMEOUT
.

Change the env., restart the appwrite stack, and then you change the functions timout in the settings.

Amazing. Thanks!

no worries, lmk if you face any other issues. please also mark the question as [SOLVED] once the issue resolves.
happy appwriting :appwritepeepo:
Recommended threads
- Random Execution Timeouts and getaddrinf...
Hi, I’m running a self-hosted Appwrite (v1.5.10) on a VPS. My setup involves calling an external API many times from Appwrite Functions. Under higher load, I oc...
- Issue Accessing Deployed Node.js API on ...
I deployed a Node.js API on Appwrite Cloud Functions, and the logs show the server running on port 2000. But when I access the domain, it says: "No active deplo...
- Can't create repos/ clone templates, or ...
My GitHub app can see all my repos, and even create new ones, but the branch isn't visible, which prevents appwrite from deploying. Is this a GitHub app permis...
