Skip to content

SystemExit and KeyboardInterrupt no longer caught (regression from raven-python) #379

Closed

Description

@saifelse

The same reasoning as getsentry/raven-python#675 applies for sentry-python,
where gunicorn raising a SytemExit(1) is something we would like to capture
in Sentry, as it is unexpected behavior from the application.

Activity

  1. added 2 commits that reference this issue on May 30, 2019
    f8213b8
    680d349
  2. added a commit that references this issue on Jun 1, 2019
    ddab2d4
  3. WhyNotHugo commented on Jul 15, 2019

    @WhyNotHugo

    Huh, I've the opposite issue: raven did not log this, but the new client does.
    However, I don't want this logged, since it doesn't make sense to me (the system will exit on every deployment, and that can happen way too many times).

    Is there any way to avoid logging SystemExit? It doesn't make sense to me, and is filling my sentry issues board.

  4. untitaker commented on Jul 15, 2019

    @untitaker
    Member

    @WhyNotHugo can you confirm those events have the wsgi mechanism?

  5. WhyNotHugo commented on Jul 16, 2019

    @WhyNotHugo

    Yes, they all do.

  6. untitaker commented on Jul 16, 2019

    @untitaker
    Member

    Hmm, from what I know this means you abort gunicorn while it is handling a request and that might be the wrong way to shut it down.

    In any case you can explicitly ignore this error like any error class with this here: #149 (comment)

  7. WhyNotHugo commented on Jul 16, 2019

    @WhyNotHugo

    Hmmm... let me double check, I believe we're killing gunicorn gracefully, but I might be wrong.

  8. WhyNotHugo commented on Jul 16, 2019

    @WhyNotHugo

    Yeah, looks like docker was killing them before gunicorn's internal grace period, I'll tweak that and it should solve it for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions