[Twisted-Python] txmongo vs. pymongo + callInThread

2014-12-21 Thread Clayton Daley
Are there any major disadvantages of using pymongo with callInThread instead of txmongo? I'd like to take advantage of some newer features in pymongo (unfortunately not available in txmongo) and it's certainly easier to maintain feature parity using callInThread. Clayton Daley ___

[Twisted-Python] Scrapy spiders waiting in reactor thread when callFromThread gets call repeatedly

2014-12-21 Thread Adi Lavi
Hi, I am using Pika's asynchronous consumer implementation with Scrapy and Twisted. I have twisted reactor running on the main thread, and Rabbit consumer running on a background thread. When I get a message and want to start my spider, I use 'callFromThread' to wake the reactor thread, init the sp