Hi, I’m building an AI app using flask. My backend takes sometime to process the request. However, after 45-60seconds, I’m getting this error:
Oct 24 02:56:13 PM [2023-10-24 13:56:13 +0000] [52] [CRITICAL] WORKER TIMEOUT (pid:89)
Oct 24 02:56:14 PM [2023-10-24 13:56:14 +0000] [52] [ERROR] Worker (pid:89) was sent SIGKILL! Perhaps out of memory?
Oct 24 02:56:14 PM [2023-10-24 13:56:14 +0000] [98] [INFO] Booting worker with pid: 98
I’m currently on the free plan, to test this application. Please let me know how to resolve this issue.
Logs
Oct 24 02:53:54 PM [2023-10-24 13:53:54 +0000] [52] [INFO] Starting gunicorn 21.2.0
Oct 24 02:53:54 PM [2023-10-24 13:53:54 +0000] [52] [INFO] Listening at: http://0.0.0.0:10000 (52)
Oct 24 02:53:54 PM [2023-10-24 13:53:54 +0000] [52] [INFO] Using worker: sync
Oct 24 02:53:54 PM [2023-10-24 13:53:54 +0000] [80] [INFO] Booting worker with pid: 80
Oct 24 02:53:56 PM Your service is live
…
…
Oct 24 02:55:19 PM ==> Detected service running on port 10000
Oct 24 02:55:19 PM ==> Docs on specifying a port: Web Services | Render Docs
Oct 24 02:56:13 PM [2023-10-24 13:56:13 +0000] [52] [CRITICAL] WORKER TIMEOUT (pid:89)
Oct 24 02:56:14 PM [2023-10-24 13:56:14 +0000] [52] [ERROR] Worker (pid:89) was sent SIGKILL! Perhaps out of memory?
Oct 24 02:56:14 PM [2023-10-24 13:56:14 +0000] [98] [INFO] Booting worker with pid: 98