Print "stalled" task on shutdown (#13022)
* Print "stalled" task on shutdown When the node is shutting down, we give the Tokio runtime 60 seconds to shutdown. If after these 60 seconds there are still running tasks, we now print these tasks. This should help debugging nodes that have stalled tasks. This pr introduces a `TaskRegistry` that keeps track of all running tasks. Each task registers and unregisters itself in this `TaskRegistry`. * Fix rustdoc * Update client/service/src/lib.rs
Showing
- substrate/Cargo.lock 1 addition, 0 deletionssubstrate/Cargo.lock
- substrate/client/cli/Cargo.toml 1 addition, 0 deletionssubstrate/client/cli/Cargo.toml
- substrate/client/cli/src/runner.rs 93 additions, 24 deletionssubstrate/client/cli/src/runner.rs
- substrate/client/service/src/lib.rs 1 addition, 1 deletionsubstrate/client/service/src/lib.rs
- substrate/client/service/src/task_manager/mod.rs 97 additions, 1 deletionsubstrate/client/service/src/task_manager/mod.rs
Please register or sign in to comment