Update MixPanel and use BufferedConsumer
This commit is contained in:
parent
f5138792ad
commit
0da9c5826b
3 changed files with 28 additions and 26 deletions
|
@ -1,4 +1,4 @@
|
||||||
autobahn
|
autobahn==0.9.3-3
|
||||||
aiowsgi
|
aiowsgi
|
||||||
trollius
|
trollius
|
||||||
peewee
|
peewee
|
||||||
|
|
|
@ -8,24 +8,21 @@ Jinja2==2.7.3
|
||||||
LogentriesLogger==0.2.1
|
LogentriesLogger==0.2.1
|
||||||
Mako==1.0.0
|
Mako==1.0.0
|
||||||
MarkupSafe==0.23
|
MarkupSafe==0.23
|
||||||
Pillow==2.6.1
|
Pillow==2.7.0
|
||||||
PyMySQL==0.6.2
|
PyMySQL==0.6.3
|
||||||
PyPDF2==1.23
|
PyPDF2==1.24
|
||||||
PyYAML==3.11
|
PyYAML==3.11
|
||||||
SQLAlchemy==0.9.8
|
SQLAlchemy==0.9.8
|
||||||
|
WebOb==1.4
|
||||||
Werkzeug==0.9.6
|
Werkzeug==0.9.6
|
||||||
alembic==0.7.0
|
|
||||||
git+https://github.com/DevTable/aniso8601-fake.git
|
|
||||||
git+https://github.com/DevTable/anunidecode.git
|
|
||||||
git+https://github.com/DevTable/avatar-generator.git
|
|
||||||
git+https://github.com/DevTable/pygithub.git
|
|
||||||
aiowsgi==0.3
|
aiowsgi==0.3
|
||||||
|
alembic==0.7.4
|
||||||
autobahn==0.9.3-3
|
autobahn==0.9.3-3
|
||||||
backports.ssl-match-hostname==3.4.0.2
|
backports.ssl-match-hostname==3.4.0.2
|
||||||
beautifulsoup4==4.3.2
|
beautifulsoup4==4.3.2
|
||||||
blinker==1.3
|
blinker==1.3
|
||||||
boto==2.34.0
|
boto==2.35.1
|
||||||
docker-py==0.6.0
|
docker-py==0.7.1
|
||||||
ecdsa==0.11
|
ecdsa==0.11
|
||||||
futures==2.2.0
|
futures==2.2.0
|
||||||
gevent==1.0.1
|
gevent==1.0.1
|
||||||
|
@ -36,26 +33,31 @@ hiredis==0.1.5
|
||||||
html5lib==0.999
|
html5lib==0.999
|
||||||
itsdangerous==0.24
|
itsdangerous==0.24
|
||||||
jsonschema==2.4.0
|
jsonschema==2.4.0
|
||||||
marisa-trie==0.6
|
marisa-trie==0.7
|
||||||
mixpanel-py==3.2.0
|
mixpanel-py==3.2.1
|
||||||
git+https://github.com/NateFerrero/oauth2lib.git
|
paramiko==1.15.2
|
||||||
paramiko==1.15.1
|
peewee==2.4.5
|
||||||
peewee==2.4.3
|
|
||||||
psycopg2==2.5.4
|
psycopg2==2.5.4
|
||||||
py-bcrypt==0.4
|
py-bcrypt==0.4
|
||||||
pycrypto==2.6.1
|
pycrypto==2.6.1
|
||||||
python-dateutil==2.2
|
python-dateutil==2.4.0
|
||||||
python-ldap==2.4.18
|
python-ldap==2.4.19
|
||||||
python-magic==0.4.6
|
python-magic==0.4.6
|
||||||
pytz==2014.9
|
pytz==2014.10
|
||||||
raven==5.1.1
|
raven==5.1.1
|
||||||
redis==2.10.3
|
redis==2.10.3
|
||||||
reportlab==2.7
|
reportlab==2.7
|
||||||
requests==2.4.3
|
requests==2.5.1
|
||||||
six==1.8.0
|
six==1.9.0
|
||||||
stripe==1.19.1
|
stripe==1.20.1
|
||||||
trollius==1.0.3
|
trollius==1.0.4
|
||||||
tzlocal==1.1.2
|
tzlocal==1.1.2
|
||||||
websocket-client==0.21.0
|
waitress==0.8.9
|
||||||
|
websocket-client==0.23.0
|
||||||
wsgiref==0.1.2
|
wsgiref==0.1.2
|
||||||
xhtml2pdf==0.0.6
|
xhtml2pdf==0.0.6
|
||||||
|
git+https://github.com/DevTable/aniso8601-fake.git
|
||||||
|
git+https://github.com/DevTable/anunidecode.git
|
||||||
|
git+https://github.com/DevTable/avatar-generator.git
|
||||||
|
git+https://github.com/DevTable/pygithub.git
|
||||||
|
git+https://github.com/NateFerrero/oauth2lib.git
|
||||||
|
|
|
@ -3,7 +3,7 @@ import logging
|
||||||
|
|
||||||
from Queue import Queue
|
from Queue import Queue
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from mixpanel import Consumer, Mixpanel
|
from mixpanel import BufferedConsumer, Mixpanel
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
@ -24,7 +24,7 @@ class SendToMixpanel(Thread):
|
||||||
self.daemon = True
|
self.daemon = True
|
||||||
|
|
||||||
self._mp_queue = request_queue
|
self._mp_queue = request_queue
|
||||||
self._consumer = Consumer()
|
self._consumer = BufferedConsumer()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
logger.debug('Starting mixpanel sender process.')
|
logger.debug('Starting mixpanel sender process.')
|
||||||
|
|
Reference in a new issue