feat: graceful shutdown β SIGINT handler - #67
Conversation
|
Warning Review limit reached
More reviews will be available in 4 minutes and 13 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. β How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. π¦ How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. βΉοΈ Review infoβοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: β Files ignored due to path filters (1)
π Files selected for processing (3)
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Add ctrlc dependency to uteke-cli - Add Uteke::shutdown() method that saves dirty vector index - Install SIGINT handler in main.rs setting AtomicBool - Call shutdown() after command execution - Exit with code 130 on SIGINT Closes #31
cebba0e to
2c55748
Compare
Summary
ctrlc = "3"dependency touteke-cliUteke::shutdown()method β saves dirty vector index to diskmain.rsviaAtomicBoolshutdown()after every command executionChanges
crates/uteke-cli/Cargo.tomlβ add ctrlc depcrates/uteke-core/src/lib.rsβ addshutdown()methodcrates/uteke-cli/src/main.rsβ ctrlc handler + shutdown callVerification
cargo checkβcargo clippyβcargo testβ 15/15 passed βcargo fmtβCloses #31