Permalink
Browse files

Allow custon io loops for ConnectionPools

  • Loading branch information...
1 parent c8697f4 commit 402f7d3b89efd98da23633542c17a0ff51edee0a @inean inean committed Jan 1, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 tcelery/__init__.py
View
@@ -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

0 comments on commit 402f7d3

Please sign in to comment.