-
Notifications
You must be signed in to change notification settings - Fork 1
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
Relay graceful shutdown implementation #203
Comments
5-12-2024investigate how to do graceful shutdown in rust |
11-12-2024implemented graceful shutdown on files specified on the issue and opened a draft pr |
12-12-2024reviewed graceful shutdown pr |
2-1-2025Start exploring Tokio tutorial |
7-1-2025continued Tokio exploration |
8-1-2025continued Tokio exploration |
9-1-2025worked on graceful shutdown implementation using TaskTracker and CancellationToken |
The RMB relay does not have a complete graceful shutdown implementation. Here are the key observations:
src/relay/mod.rs
runs in an infinite loop without any shutdown handling.src/relay/federation/mod.rs
without shutdown handling.src/events/mod.rs
also lacks shutdown handling.I recommend implementing proper graceful shutdown handling to ensure reliable operation, maintain data integrity, and prevent resource leaks.
To implement proper graceful shutdown, the relay should:
The text was updated successfully, but these errors were encountered: