Skip to content

Configure abnormal exit reasons for DynamicSupervisor #131

@AndrewDryga

Description

@AndrewDryga

Motivation: provide a supervisor for temporary GenServers. They should be spawned when new job is started, and exit with :normal reason after job is finished.

From the Elixir docs it looks like :transient restart type is most suitable for this use case, but actually it's not, because whenever supervisor reaches max_restart_intensity it will exit with reason :shutdown that is threaten as normal, and supervisor will die silently.

I guess it will be a good solution to provide different restart strategy that will restart process even when it exits with :shutdown reason or to provide a way to configure abnormal exit reasons for supervisor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions