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

bpo-30782: Allow limiting the number of concurrent tasks in asyncio.as_completed #2424

Closed
wants to merge 3 commits into from

Conversation

andybalaam
Copy link

@andybalaam andybalaam commented Jun 27, 2017

See http://bugs.python.org/issue30782 - I propose adding a "limit" argument to asyncio.as_completed.

Justification is in the linked bug and my blog posts: http://www.artificialworlds.net/blog/2017/06/12/making-100-million-requests-with-python-aiohttp/

The "Allow passing a coroutine to as_completed" part may be the most controversial because it turns off checking for some types of error, but I think it is necessary to achieve what I am trying to do.

@mention-bot
Copy link

@andybalaam, thanks for your PR! By analyzing the history of the files in this pull request, we identified @1st1, @bitdancer and @methane to be potential reviewers.

@andybalaam andybalaam changed the title Allow limiting the number of concurrent tasks in asyncio.as_completed bpo-30782: Allow limiting the number of concurrent tasks in asyncio.as_completed Jun 27, 2017
@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Dec 8, 2018
Copy link

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re base please

@csabella
Copy link
Contributor

csabella commented Jun 2, 2019

@andybalaam, thank you for your contribution to CPython. @1st1 and @asvetlov had marked this on the bug tracker as "won't fix", so I'm going to close this with that in mind. If the status changes, then this can be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting core review type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants