Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many urls in greqests.map causes gevent.hub.LoopExit only on mac #50

Closed
mnowotka opened this issue Apr 16, 2014 · 2 comments
Closed
Labels
🙉🙈🙊 gevent some issue likely caused by gevent, not necessarily grequests

Comments

@mnowotka
Copy link

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.

@rtdean
Copy link

rtdean commented Jun 20, 2014

From SO:

ret = grequests.map(rs, size=50)

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.

@kennethreitz
Copy link
Collaborator

From SO:

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.

May need to revisit that.

@spyoungtech spyoungtech added the 🙉🙈🙊 gevent some issue likely caused by gevent, not necessarily grequests label Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙉🙈🙊 gevent some issue likely caused by gevent, not necessarily grequests
Projects
None yet
Development

No branches or pull requests

4 participants