Skip to content

Add support for terminate requests or configurable termination signal for running sessions #21605

@benfiola

Description

@benfiola

Original discussion for context.

It appears that when terminating a running Python session - a SIGKILL is sent to the underlying process. While this does indeed kill the underlying process, it also prevents any sort of clean-up behavior (i.e., context managers, signal handlers, etc.).

It'd be great if I could either:

  • Configure the signal being sent on session termination (i.e., a SIGTERM instead of a SIGKILL)
  • Use terminate requests to more natively handle the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions