Skip to content

Message type to shut down runner process gracefully #24

@WinPlay02

Description

@WinPlay02

Is your feature request related to a problem?

On Windows systems, the runner cannot be gracefully shutdown, which leaves the SyncManager process behind.

Desired solution

A new message type (e.g. shutdown) that tells the runner to gracefully exit as soon as possible.

Possible alternatives (optional)

  • Using SIGINT, which does not exist on Windows. There is a CtrlBreak feature which could be used, but as I understood is not part of the Windows API and thus is hard to use in the extension. It is currently used when Ctrl+C is pressed and the process is run in a console window.
  • Just kill the whole process tree when the runner should be shut down.

Screenshots (optional)

No response

Additional Context (optional)

Killing the process tree could still be used as a last resort, if after sending the shutdown message, a specific timeout expired and the process didn't shut down in time.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions