You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is rs? I've only seen this happen when feeding grequests a queue object, and not putting StopIteration at the end of the queue... eventually, everything is processed, nothing else is running in parallel, and the parent job would go to sleep, except there is nothing else running that can possibly get appended to the queue, so that exception is raised.
It turned out that each request was executed in separate session. This was clearly not what I wanted so after solving this and sharing one session between all requests, the code is faster and doesn't give deadlocks anymore. On the other hand executing each requests in separate session should cause any problems (appart from being extremely inefficient) so thank you for the info.
Detailed description is in this SO question: https://stackoverflow.com/questions/23117176/too-many-urls-in-greqests-map-causes-gevent-hub-loopexit-only-on-mac , but I will answer any questions in comments to this issue if needed.
The text was updated successfully, but these errors were encountered: