Skip to content

Beacon node exits uncontrolled (too early) during graceful shutdown #5317

@nflaig

Description

@nflaig

Problem

Lodestar BN does not wait for all jobs to be finished during graceful shutdown.
This is problematic as some operations are not executed such as writing BLSToExecutionChanges to disk (see discord discussion)

Root cause

Lodestar uses threads package which installs SIGTERM signal listeners that exit the main process once all workers are terminated, see terminateWorkersAndMaster.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio-highResolve issues as soon as possible.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions