我已经部署了django应用程序,并部署到了Heroku,它通过CSV文件输入了Facebook帐户ID作为输入并解析了信息。它在本地服务器上工作正常,但是当我尝试上传较大的CSV文件时出现以下错误。
14:12:16 web.1 | 2014-07-17 14:12:16 [30747] [INFO] Using worker: sync 14:12:16 web.1 | 2014-07-17 14:12:16 [30752] [INFO] Booting worker with pid: 30752 14:13:21 web.1 | 2014-07-17 14:13:21 [30747] [CRITICAL] WORKER TIMEOUT (pid:30752) 14:13:21 web.1 | 2014-07-17 03:43:21 [30752] [INFO] Worker exiting (pid: 30752) 14:13:21 web.1 | 2014-07-17 14:13:21 [30841] [INFO] Booting worker with pid: 30
Heroku请求限制为30秒,如果请求花费的时间超过此时间,则路由器将终止该请求
您可以增加gunicorn的日志级别,以查看您的过程中是否存在错误