Skip to content

Gracefully stop node on shutdown signal#2884

Draft
bytemaster wants to merge 1 commit into
erigontech:masterfrom
gofractally:codex/graceful-shutdown
Draft

Gracefully stop node on shutdown signal#2884
bytemaster wants to merge 1 commit into
erigontech:masterfrom
gofractally:codex/graceful-shutdown

Conversation

@bytemaster
Copy link
Copy Markdown

Summary

  • run the node task and shutdown-signal waiter independently so SIGINT requests an orderly stop
  • propagate request_stop through snapshot sync, chain sync, sentry, gRPC servers, resource usage logging, and staged execution
  • treat expected channel/server cancellation paths as graceful shutdown instead of fatal errors

Verification

  • git diff --check
  • built silkworm successfully on the integration branch before splitting this standalone PR branch

Opened as draft while we run a clean upstream-base build.

Run the node task and shutdown-signal task separately so SIGINT requests an orderly stop before the process joins its context pool. Propagate request_stop through sync, sentry, snapshot sync, gRPC servers, resource usage logging, and staged execution, and treat expected cancellation paths as graceful shutdown instead of fatal errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant