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.