Graceful shutdown for the task manager (#6654)
* Initial commit Forked at: 60e3a693 Parent branch: origin/master * Move task_manager.rs to mod.rs * Graceful shutdown for the task manager * Await all background task JoinHandle at the same time * Add tests * Make future() wait also for exit signal + fix essential task failed Probably related to https://github.com/paritytech/cumulus/issues/111 * add comments for non-obvious code * Use clean_shutdown() in sc-cli * Adapt code and upgrade tokio in sc-cli * cleanup spacing in doc * Add license * I guess actually running the clean shutdown would be a good idea * fix tests * Update client/cli/src/runner.rs Co-authored-by: Benjamin Kampmann <[email protected]> * Improve error logging * disable other tests (can't reproduce on my machine) * Revert "disable other tests (can't reproduce on my machine)" This reverts commit c133c590. * It is possible that the tasks are ended first * Revert "It is possible that the tasks are ended first" This reverts commit 502aba4a. * Use single threaded scheduler for more predictability * enable_time * Revert "enable_time" This reverts commit 4e152140. * Revert "Use single threaded scheduler for more predictability" This reverts commit ee5e13c5. * Revert "Revert "It is possible that the tasks are ended first"" This reverts commit 1b91a8ca . * This cannot be verified either with a threaded pool * Apply suggestions from code review Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Benjamin Kampmann <[email protected]> Co-authored-by: Benjamin Kampmann <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
parent
e3bb2cea
Please register or sign in to comment