Skip to content

LifecycleNode: Take shutdown transition when exiting #997

@wieset

Description

@wieset

Feature request

Feature description

When a lifecycle node is shut down using CTRL-C, it would be helpful to automatically call the shutdown transition. I would actually consider this "expected behavior".

Currently, the user needs to take care of calling the shutdown transition before exiting, for example through installing their own signal handler. Otherwise, the node is destructed from whichever state it's currently in, potentially leaving the system in an undefined or unsafe state.

Implementation considerations

If the node is currently in another transitioning state, the shutdown request needs to be deferred. If the node is already finalized, the request should be ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions