-
-
Notifications
You must be signed in to change notification settings - Fork 768
fix(runner): disable warm starts after SIGTERM #2316
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 28b7374 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughA patch was implemented to modify how the system responds to a SIGTERM signal. The update introduces a private boolean property to control whether warm starts are enabled. Upon receiving SIGTERM, warm starts are disabled, allowing any ongoing runs to finish without interruption, while preventing new warm start executions. The shutdown logic is adjusted so that the process exits only after current runs complete and cleanup is performed. Additionally, a method responsible for stopping the controller is renamed and extended to ensure proper cleanup and process exit. Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx}📄 CodeRabbit Inference Engine (.github/copilot-instructions.md)
Files:
🧠 Learnings (2).changeset/cyan-news-design.md (2)Learnt from: CR Learnt from: CR packages/cli-v3/src/entryPoints/managed/controller.ts (4)Learnt from: nicktrn Learnt from: nicktrn Learnt from: nicktrn Learnt from: nicktrn ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (25)
🔇 Additional comments (5)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
CodeRabbit Configuration File (
|
Previously, we'd cancel any executing runs and close the socket. But after the run process finishes we try to warm start again, process the next run, warm start again, ad infinitum or until SIGKILL.
Now, all we do is disable warm starts to break the cycle. Executing runs are given a chance to finish until SIGKILL eventually comes.