-
-
Notifications
You must be signed in to change notification settings - Fork 701
Clear runner state of previous executions before warm starts #1905
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Conversation
|
WalkthroughThis pull request introduces several enhancements across multiple modules. The changes improve logging in the run controller by incorporating environment variables and detailed contextual data. In addition, the task execution flow now supports process suspension with refined error handling, including a new Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Controller as ManagedRunController
participant Executor as TaskExecutor
participant Process as TaskRunProcess
Client->>Controller: startAndExecuteRunAttempt(...)
Controller->>Controller: Log run start details (env & context)
Controller->>Executor: execute(..., isWarmStart?)
Executor->>Process: execute(..., isWarmStart?)
alt Process triggers suspension
Process->>Process: Set _isBeingSuspended = true
Process->>Process: kill("SIGKILL")
Process->>Controller: Return SuspendedProcessError
Controller->>Client: Log suspension event with detailed context
else Normal execution
Process->>Controller: Return successful execution outcome
Controller->>Client: Log execution events and status updates
end
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Graph Analysis (2)packages/core/src/v3/workers/taskExecutor.ts (3)
packages/cli-v3/src/entryPoints/managed-run-controller.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (39)
✨ Finishing Touches
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:
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 (
|
The main change in here is the clearing of prior state, i.e. previous run execution and its completion, before proceeding to the warm start phase. Also adds excessive debug logs (we'll have to disable these at some point).
Summary by CodeRabbit
New Features
Refactor