Skip to content

Improve KeyboardInterrupt handling on Windows #228

Closed

Description

@janbuchar
  • the ProactorEventLoop used by asyncio on Windows does not implement add_signal_handler
    • on UNIX, we use it to catch sigint early, print a message and cancel the task that runs the AutoscaledPool
    • without the custom signal handler, the code can be cancelled basically anywhere -> some worker tasks may be ended prematurely
  • it should be possible to register a signal handler with signal.signal, but cancelling the right task from there may be tricky

Activity

  1. added
    t-toolingIssues with this label are in the ownership of the tooling team.
    on Jun 25, 2024
  2. erwinkramer commented on Aug 16, 2025

    @erwinkramer
  3. added a commit that references this issue on Oct 6, 2026
    dbec1f5
  4. vdusek commented on Oct 6, 2026

    @vdusek
    Collaborator

    resolved by #2277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions