Skip to content

Commit

Permalink
Use lazy-apps in uwsgi to fix sentry threading
Browse files Browse the repository at this point in the history
Without this, uWSGI blocks sentry from transporting data because this is
done in a separate thread.  Without lazy-apps, uWSGI loads apps in the
master, which enforces a single-threading operation mode.
  • Loading branch information
lukasjuhrich committed Sep 17, 2015
1 parent 752417f commit 4bb4e23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ wsgi-file = sipa.py
callable = app
harakiri = 2
enable-threads = true
lazy-apps = true

mount = /sipa=sipa.py
; rewrite SCRIPT_NAME and PATH_INFO accordingly
Expand Down

2 comments on commit 4bb4e23

@lukasjuhrich
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be not a problem anymore, see elastic/apm-agent-python#441 (comment).

@lukasjuhrich
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See also #421

Please sign in to comment.