-
-
Notifications
You must be signed in to change notification settings - Fork 711
Fixes for v4 waits and restores #1868
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
Conversation
|
WalkthroughThis update spans multiple parts of the codebase. In the supervisor app, script adjustments and dependency updates were made alongside the addition of a new metadata URL option via environment variables. The pod processing logic now distinguishes graceful shutdown scenarios with new status types and exit codes, and the related tests were updated accordingly. In addition, configurable exit codes have been introduced in the CLI module, while schema changes and clock resets were applied in core modules to support updated heartbeat and runtime operations. Changes
Sequence Diagram(s)sequenceDiagram
participant Pod as Pod
participant F as FailedPodHandler
participant M as Metrics
participant L as Logger
Pod->>F: Pod terminates (exit code 200)
F->>F: Check against GRACEFUL_SHUTDOWN_EXIT_CODE
F->>L: Log graceful shutdown detected
F->>M: Increment "GracefulShutdown" metric
F-->>Pod: Exit processing early
sequenceDiagram
participant Env as Environment
participant MRC as ManagedRunController
participant Proc as Process
Env->>MRC: Supply TRIGGER_SUCCESS_EXIT_CODE and TRIGGER_FAILURE_EXIT_CODE
MRC->>MRC: Initialize exit codes from environment
alt Success condition
MRC->>Proc: exitProcess(successExitCode)
else Failure condition
MRC->>Proc: exitProcess(failureExitCode)
end
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (13)
🧰 Additional context used🧬 Code Definitions (1)apps/supervisor/src/services/failedPodHandler.test.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (24)
✨ 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 (
|
Fixes:
Summary by CodeRabbit
New Features
Tests
Chores