Search code examples
djangopython-3.xgunicornsentry

Sentry send notification SystemExit: 1


On web server I'm using Python3.6, Django with Gunicorn and Supervisor. After deploy to server I began to receive notifications from Sentry like this:

Message

SystemExit: 1

Sentry log: https://sentry.io/share/issue/ddd8c6426d68494facfa0bdab9b01a2c/

What can be reason of this?


Solution

  • It might be too late to answer this. I had the same issue. It turns out to be caused by gunicorn thread timeout for long-running tasks.

    To fix the issue add this to gunicorn config file:

    --timeout 120