To be more specific, Functions have a cold start which means that the first time they are executed, They take some time to execute in contrast with the subsequent executions. But after some time the container is put to sleep/hibernation ? So what's the default time ?
From what I understand, between 60s and 1h.
You can configure the env variable: https://appwrite.io/docs/advanced/self-hosting/environment-variables#functions
_APP_FUNCTIONS_INACTIVE_THRESHOLD (default 60s)
In order to increase the sleep interval
Recommended threads
- dynamic key missing scopes for database ...
Here are the scopes listed, I get permission errors for reading row and document. Appears to be missing since last time i checked. Database 6 Scopes policies....
- Worker functions stuck on "Fetched 0 fun...
Appwrite Version: 1.9.0 Bug Description: The appwrite-worker-functions container gets stuck in an infinite loop logging "Fetched 0 functions..." while scheduled...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...