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

[3.13] gh-124309: Modernize the staggered_race implementation to support eager task factories (GH-124390) #124573

Closed

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 26, 2024

(cherry picked from commit de929f3)

Co-authored-by: Peter Bierma zintensitydev@gmail.com
Co-authored-by: Thomas Grainger tagrain@gmail.com
Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com
Co-authored-by: Carol Willing carolcode@willingconsulting.com
Co-authored-by: Kumar Aditya kumaraditya@python.org

…port eager task factories (pythonGH-124390)

(cherry picked from commit de929f3)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@Yhg1s
Copy link
Member

Yhg1s commented Sep 26, 2024

Does this need to go into 3.13.0, or can it wait until 3.13.1?

@kumaraditya303
Copy link
Contributor

kumaraditya303 commented Sep 29, 2024

Does this need to go into 3.13.0, or can it wait until 3.13.1?

would be good to have in 3.13.0 as loop param is now added back.

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

LGTM, two optional nits.

I'll leave it to @Yhg1s to decide whether to include this in RC3.

happy_eyeballs_delay, loop=self)
happy_eyeballs_delay)
Copy link
Member

Choose a reason for hiding this comment

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

No need to change this now?

Copy link
Contributor

Choose a reason for hiding this comment

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

I added it back but I don't think it's necessary, loop would be the running loop anyways at this point.

Lib/asyncio/staggered.py Outdated Show resolved Hide resolved
Copy link
Member

@Yhg1s Yhg1s left a comment

Choose a reason for hiding this comment

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

Is this in a state to go in now? (The branch needs updating, and I don't know if there's been any other work in main that should be reflected in this change.)

@graingert
Copy link
Contributor

This original PR was reverted, and this backport is no longer needed

@graingert graingert closed this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants