opt(katana): graceful shutdown on critical tasks termination - #2409
Conversation
WalkthroughOhayo, sensei! The pull request introduces significant changes to the shutdown logic of the Katana node, enhancing its responsiveness by allowing multiple shutdown triggers. It modifies the Changes
Tip Announcements
Recent review detailsConfiguration used: .coderabbit.yaml Files ignored due to path filters (1)
Files selected for processing (5)
Additional comments not posted (11)
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2409 +/- ##
=======================================
Coverage 68.14% 68.14%
=======================================
Files 364 364
Lines 47745 47760 +15
=======================================
+ Hits 32535 32548 +13
- Misses 15210 15212 +2 ☔ View full report in Codecov by Sentry. |
integrate the
TaskManagerintroduced in #2318 to Katana, improving error handling when a critical task (eg block production) gets terminated. (regardless of success or error)Summary by CodeRabbit
New Features
TaskManagerfor better management of asynchronous tasks.stopmethod for graceful node shutdown.Improvements
TaskManager, emphasizing clarity and structured handling of shutdown events.TaskBuilder, enhancing code readability and maintainability.Chores
Cargo.tomlto reflect changes in project structure.