We are having this issue, no longer the function runtime or code, if it goes longer than 1 minute, there's no logs at all, just this error:
error code: 524
TL;DR
Developers are experiencing error code 524 for functions running longer than 1 minute in Appwrite. Possible solutions include checking if Appwrite is using Cloudflare in the frontend, ensuring early responses and continuing functions asynchronously in the background. The issue may occur when the function is triggered manually or always. Logs are not generated if the function runtime exceeds 1 minute.