Stop the lease monitor after lease expiration#373
Conversation
WalkthroughThis change revises the lease monitoring logic in the Changes
Sequence Diagram(s)sequenceDiagram
participant M as Monitor
participant L as Lease Instance
M->>L: Call monitor_async(threshold)
alt Lease expired (remaining < 0)
L-->>M: Log "Lease ended" & exit monitoring
else Lease nearing expiration (remaining < threshold)
L-->>M: Log "Lease expiring soon"
Note right of L: Wait for threshold duration
M->>L: Recheck lease status
else Active lease
Note right of L: Wait for 5 seconds
M->>L: Recheck lease status
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (4)
✨ 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 (
|
✅ Deploy Preview for jumpstarter-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Summary by CodeRabbit