◐ Shell
reader mode source ↗
Skip to content

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

Closed
andybalaam wants to merge 3 commits into
python:masterfrom
andybalaam:limited-as_completed
Closed

bpo-30782: Allow limiting the number of concurrent tasks in asyncio.as_completed#2424
andybalaam wants to merge 3 commits into
python:masterfrom
andybalaam:limited-as_completed

Conversation

@andybalaam

@andybalaam andybalaam commented Jun 27, 2017

Copy link
Copy Markdown

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
Copy Markdown

@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 Jun 27, 2017
@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Dec 8, 2018

@auvipy auvipy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hide comment

re base please

@csabella

csabella commented Jun 2, 2019

Copy link
Copy Markdown
Contributor

@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