Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

Commit

Permalink
Allow custon io loops for ConnectionPools
Browse files Browse the repository at this point in the history
  • Loading branch information
inean committed Jan 1, 2014
1 parent c8697f4 commit 402f7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcelery/__init__.py
Expand Up @@ -19,7 +19,7 @@ def setup_nonblocking_producer(celery_app=None, io_loop=None,
io_loop = io_loop or ioloop.IOLoop.instance()

NonBlockingTaskProducer.app = celery_app
NonBlockingTaskProducer.conn_pool = ConnectionPool(limit=limit)
NonBlockingTaskProducer.conn_pool = ConnectionPool(limit, io_loop)
NonBlockingTaskProducer.result_cls = result_cls
if celery_app.conf['BROKER_URL'] and celery_app.conf['BROKER_URL'].startswith('amqp'):
celery.app.amqp.AMQP.producer_cls = NonBlockingTaskProducer
Expand Down

0 comments on commit 402f7d3

Please sign in to comment.