Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neard: handle SIGINT by stopping the node #4428

Closed
wants to merge 1 commit into from
Closed

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Jun 29, 2021

Stop the system once a SIGINT is received. This should allow for
graceful termination since System::stop will stop all the arbiters
and that in turn will stop all the actors (leading them through
stopping and stopped states thus allowing all the necessary clean-ups).

To achieve this, also update update wasmer-runtime-core dependency to
0.17.4. Among other things, the new version no longer catches the INT
signal making it available for tokio to handle.

Issue: #3266

Stop the system once a SIGINT is received.  This should allow for graceful
termination since System::stop will stop all the arbiters and that in turn
will stop all the actors (leading them through stopping and stopped states
thus allowing all the necessary cleanups).

Fixes: near#3266
@mina86
Copy link
Contributor Author

mina86 commented Jun 29, 2021

Actually it doesn’t work reliably since wasmer will install its own SIGINT handler overwriting tokio.

@mina86 mina86 closed this Jun 29, 2021
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