代码之家  ›  专栏  ›  技术社区  ›  shashisp

heroku中的django应用程序获取工作程序超时错误

  •  19
  • shashisp  · 技术社区  · 11 年前

    我已经部署了一个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
    
    2 回复  |  直到 6 年前
        1
  •  18
  •   Bojan Kogoj    9 年前

    赫罗库 requests are limited to 30 seconds ,如果请求的时间超过此时间,则路由器将终止请求

    您可以增加 LOG LEVEL of gunicorn 看看你的过程中是否有错误

        2
  •  12
  •   David Dehghan    9 年前

    超时增加到15秒的Procfile示例

    web: gunicorn myproject.wsgi --timeout 15 --keep-alive 5 --log-level debug