Skip to content

Handle Process shutdown from SIGINT #86

@toby-coleman

Description

@toby-coleman

Long running models (e.g. those consuming a websocket or similar) can only be terminated via CTRL+C/SIGINT. Currently this isn't handled gracefully.

Possible solution: introduce a signal handler for SIGINT somewhere, e.g. on the Process. See https://websockets.readthedocs.io/en/stable/faq/server.html#how-do-i-stop-a-server. Then emit a StopEvent to cause the components to shutdown the model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions