Skip to content

Graceful shutdown #1074

@Stono

Description

@Stono

Hey,
So it seems at the moment if I trigger a prompt with sendAndWait, and then the process receives a SIGINT the processing of the prompt ends. Ideally, I want to wait for the prompt to complete before exiting.

In order to work around this i've ended up creating a wrapper script that exec's the copilot-cli sdk script with a detatched: true, but then I end up with zombie processes.

So as it stands, I can't see a way to do graceful shutdown, allowing a prompt to complete. Am I down a rabbithole here, am I missing something? Or is there no way to gracefully finish processing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions