segmentio / analytics-python

The hassle-free way to integrate analytics into any python application.

Home Page:https://segment.com/libraries/python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data not being pushed to Segment with Django + uWSGI + Supervisor

joetheone opened this issue · comments

Hi All,

Everything works great locally when using Django's runserver command, but when I put the code into prod no errors and raised and no events are being sent to Segment. I noticed all the events come in when I restart supervisor or if I explicitly call flush() after a call to track().

I suspect something in uWSGI or Supervisor is messing with the background threads. Any help would be appreciated!

For any poor soul who happens upon this, make sure you have enable-threads = true in your uWSGI config.