Skip to content

Remove tornado loop kwarg in Server #6051

Closed as not planned
Closed as not planned

Description

@fjetter

Our Server classes and Server subclasses are currently accepting a tornado IOLoop as an argument. When removing the tornado IOLoop from the code base, we'll need to introduce appropriate replacements

  • Server likely doesn't need a kwarg. It is always async, we can just use asyncio.get_running_loop
  • Client, Cluster, Scheduler, etc. might want to use a LoopRunner instance or a token instead

Activity

  1. added
    needs info
    on Jun 13, 2022
  2. fjetter commented on Jun 13, 2022

    @fjetter
    MemberAuthor

    @graingert can you please provide a brief summary where we are with this? Is this ticket still relevant? IIUC, we just removed or deprecated this usage and we can likely close this ticket, can't we?

  3. graingert commented on Jun 13, 2022

    @graingert
    Member

    yes this ticket is mostly completed by

    #6473
    #6443

    when working on #6163 I discovered that passing a non-current loop to Scheduler, Server, Worker or Nanny was already broken and so could be deprecated without any disruption.

    howerver, the Client and Cluster (and any other SyncMethodMixin) classes, still require either a running loop or None so that they can determine if they are being run from a synchronous or asynchronous 'perspective'

  4. fjetter commented on Jun 13, 2022

    @fjetter
    MemberAuthor

    Great, I'll close this then as a duplicate

  5. removed
    needs info
    on Sep 5, 2025
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