Skip to content

Implement shutdown_default_executor() #349

Closed

Description

@agronholm
  • uvloop version: 0.14.0
  • Python version: 3.9.0b1
  • Platform: Linux
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: yes
  • Does uvloop behave differently from vanilla asyncio? How?: yes – vanilla asyncio implements this method

Python 3.9 added a new mandatory method to the AbstractEventLoop interface, named shutdown_default_executor(). This method is crucial for asyncio.run() to work. If it's absent, asyncio.run() will fail with a NotImplementedError when performing the shutdown cleanup.

Related CPython issue: https://bugs.python.org/issue34037

Activity

  1. aeros commented on Jun 4, 2020

    @aeros
    Contributor

    Seeing as I added loop.shutdown_default_executor() to asyncio, I wouldn't mind working on this issue. Unless someone else specifically wants to work on this, feel free to assign me and I should be able to find the time within the next couple of weeks or so.

    (Note that this would be my first issue for uvloop)

  2. 1st1 commented on Jun 9, 2020

    @1st1
    Member

    Kyle, feel free to work on this.

  3. aeros commented on Jul 6, 2020

    @aeros
    Contributor

    Sorry for the delay on this. I've been a bit otherwise occupied and had some local issues with installing cython in the virtual environment (due to an OS problem where libffi.so.6 was not present). I just resolved the issue earlier today and should have time to open a PR for this issue within the next week or so.

  4. 1st1 commented on Jul 6, 2020

    @1st1
    Member

    np!

  5. agronholm commented on Jul 15, 2020

    @agronholm
    Author

    Really nice to have this. How soon can we expect a new uvloop release?

  6. 1st1 commented on Jul 22, 2020

    @1st1
    Member

    I'll try to do one around 3.9 release. Sorry, i'm extremely busy these days.

  7. agronholm commented on Oct 6, 2020

    @agronholm
    Author

    Python 3.9.0 has been released already so it would be really nice to get this done.

  8. pilosus commented on Oct 14, 2020

    @pilosus

    It would be super nice to have this fix released! Can't wait to switch over Python 3.9.0 )

  9. hauntsaninja commented on Nov 20, 2020

    @hauntsaninja

    Thank you for uvloop! I'd love to see this released; if there's anything blocking the release I'd be happy to help :-)

  10. 1st1 commented on Nov 20, 2020

    @1st1
    Member

    I'm a bit busy with releasing EdgeDB b1. We should do that in a week or two and then it will be a priority for me to release uvloop (and migrate EdgeDB itself to 3.9).

  11. NotoriousRebel commented on Dec 15, 2020

    @NotoriousRebel

    Any updates?

  12. agronholm commented on Dec 15, 2020

    @agronholm
    Author

    EdgeDB b1 isn't out yet. I wouldn't expect anything to happen before that.

  13. added a commit that references this issue on Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions