Hi,<br><br>  I have run into a weird performance issue while working with twisted and using celery to schedule tasks on it. Here is my setup:<br><br>1. Celery schedules a task which makes a TCP connection to a server running FreeSwitch<br>
2. Celery is running with concurrency = 2.<br>3. I have changed my code so that I call reactor.callfromthread for all reactor based work.<br>4. A lot of times once I schedule the celery task, I get delays ranging from 3 - 30 seconds when I am running with Celery concurrency =2.<br>
5. If I reduce the celery concurrency to 1, then everything works great! <br>6. Upon debugging it a little bit more, it seems that the selectReactor&#39;s doSelect is where the code is getting stuck on the select().<br><br>
I dont know how to get around the delay, and I dont know who is causing that delay exactly. If there is more info that is needed then please let me know. Everything works fine when the Celery worker process is 1, but delay starts happening invariably when celery&#39;s worker processes &gt;=2.<br>
<br>Any help would be great!<br><br>Regards,<br>Dinesh<br>