Skip to content

Controlled shutdown #13

@razorfog

Description

@razorfog

Forky makes it difficult to operate graceful shutdowns in environments such as Heroku that blast all processes with SIGTERM on shutdown.

Forky has a flag shuttingDown that if it exported directly or via a setter function to allow it to be set to true, it could prevent the restart of child processes during the exit.

Is there a reason the flag shuttingDown is not exposed and seems to be a defacto constant? It might be a bug.

It's a real easy fix to allow a setter for shuttingDown and I'd put up a PR for that if it's something the admins would agree to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions