Skip to content

Remove all invocations of IOLoop.run_sync from CLI #6162

Closed

Description

@fjetter

tornado.IOLoop.run_sync is deprecated and must be removed from our code base.

The CLI scripts are all calling this and a replacement with asyncio.run should be possible

Caveats

  • The way we handle signals needs to be adjusted
  • Once asyncio.run finishes we need to ensure the tornado loop is also closed
  • behaviour of preload modules may be affected if they are using loops about whether or not they are initialized before the loop is created. Preserving this behaviour is out of scope.

Activity

  1. added
    good first issue
    on Apr 20, 2022
  2. changed the title [-]all CLI scripts call `IOLoop.run_sync`[/-] [+]Remove all invocations of `IOLoop.run_sync` from CLI[/+] on Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions