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

fix: shutdown ordering tasks with sigint #629

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

dav1do
Copy link
Contributor

@dav1do dav1do commented Dec 6, 2024

The ordering tasks wouldn't shutdown gracefully and could take forever. Worst case you killed the process and left a lock on the sqlite file and had to go find another pid to kill it. Now they exit with sigint.

@dav1do dav1do requested review from nathanielc, a team and stbrody as code owners December 6, 2024 18:50
@dav1do dav1do requested review from 3benbox and removed request for a team December 6, 2024 18:50
p2p/src/node.rs Outdated Show resolved Hide resolved
could take hours and it wouldn't shutdown with interrupt. if you killed the process you might leave the lock on the sqlite db and need fuser to find and kill the pid to release it
@dav1do dav1do force-pushed the fix/shutdown-ordering-tasks branch from ecfda50 to c6ba08f Compare December 17, 2024 19:45
@dav1do dav1do added this pull request to the merge queue Dec 18, 2024
Merged via the queue into main with commit 560dfa3 Dec 18, 2024
5 checks passed
@dav1do dav1do deleted the fix/shutdown-ordering-tasks branch December 18, 2024 20:30
This was referenced Dec 20, 2024
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.

2 participants