Skip to content

Commit

Permalink
Merge pull request #150 from permitio/omer/per-10004-fix-sigabrt-in-p…
Browse files Browse the repository at this point in the history
…dp-when-loading-data-takes-too-ling

add GUNICORN_TIMEOUT env var to configure the gunicorn timeout
  • Loading branch information
omer9564 authored May 28, 2024
2 parents 1ef8cd0 + ff35288 commit 1bd2ae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash

export GUNICORN_CONF=${GUNICORN_CONF:-/gunicorn_conf.py}
export GUNICORN_TIMEOUT=${GUNICORN_TIMEOUT:-600}
ddtrace=""
if [ "${PDP_ENABLE_MONITORING}" == "true" ]
then
ddtrace=ddtrace-run
fi
$ddtrace gunicorn -b 0.0.0.0:${UVICORN_PORT} -k uvicorn.workers.UvicornWorker --workers=${UVICORN_NUM_WORKERS} -c ${GUNICORN_CONF} ${UVICORN_ASGI_APP}
$ddtrace gunicorn -b 0.0.0.0:${UVICORN_PORT} -k uvicorn.workers.UvicornWorker --workers=${UVICORN_NUM_WORKERS} -c ${GUNICORN_CONF} ${UVICORN_ASGI_APP} --timeout ${GUNICORN_TIMEOUT}
return_code=$?

if [ "$return_code" == 3 ]
Expand Down

0 comments on commit 1bd2ae9

Please sign in to comment.