Rank 1: Thread
I'm using Swift swift-5.8 runtime for Functions. When I run docker locally on my mac, I'm able to successfully compile, and deploy/execute my Swift Functions API.
However, every time that I deploy on Digital Ocean (using the same .env file), the functions stop building at exactly 10 minutes with no crash log. Just regular logs where compilation is unfinished:
[793/949] Compiling bn-586.windows.x86.S
[794/949] Compiling bn-586.linux.x86.S
[795/949] Compiling armv8-mont.linux.aarch64.S
[796/949] Compiling armv8-mont.ios.aarch64.S
[797/949] Compiling armv4-mont.linux.arm.S
[798/949] Compiling armv4-mont.ios.arm.S
[799/949] Compiling aesv8-gcm-armv8.linux.aarch64.S
[800/949] Compiling aesv8-gcm-armv8.ios.aarch64.S
[801/949] Compiling aesv8-armx64.linux.aarch64.S
[802/949] Compiling aesv8-armx64.ios.aarch64.S
[803/949] Compiling aesv8-armx32.linux.arm.S
[804/949] Compiling aesv8-armx32.ios.arm.S
[805/949] Compiling aesni-x86_64.mac.x86_64.S
[806/949] Compiling aesni-x86_64.linux.x86_64.S
[807/949] Compiling aesni-x86.windows.x86.S
[808/949] Compiling aesni-x86.linux.x86.S
[809/949] Compiling aesni-gcm-x86_64.mac.x86_64.S
[810/949] Compiling aesni-gcm-x86_64.linux.x86_64.S
```
I've tried updating my _APP_FUNCTIONS_BUILD_TIMEOUT in .env to be a high value, but the functions still timeout during deploy.
_APP_FUNCTIONS_SIZE_LIMIT=30000000
_APP_FUNCTIONS_TIMEOUT=1800
_APP_FUNCTIONS_BUILD_TIMEOUT=100000
_APP_FUNCTIONS_CONTAINERS=10
_APP_FUNCTIONS_CPUS=0
_APP_FUNCTIONS_MEMORY=2048
_APP_FUNCTIONS_MEMORY_SWAP=2048
_APP_FUNCTIONS_RUNTIMES=swift-5.8
_APP_EXECUTOR_HOST=http://appwrite-executor/v1
_APP_EXECUTOR_RUNTIME_NETWORK=appwrite_runtimes
_APP_FUNCTIONS_ENVS=swift-5.8
_APP_FUNCTIONS_INACTIVE_THRESHOLD=60
I used the one click setup for digital ocean.