Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

[Backport release-0.7] client lease improvements#720

Merged
mangelajo merged 8 commits intorelease-0.7from
backport-704-to-release-0.7
Oct 23, 2025
Merged

[Backport release-0.7] client lease improvements#720
mangelajo merged 8 commits intorelease-0.7from
backport-704-to-release-0.7

Conversation

@jumpstarter-backport-bot
Copy link
Copy Markdown

Bot-based backport to release-0.7, triggered by a label in #704.

we monitor lease status too frequently (every 5s) which doesn't correspond to the default grpc keepalive which we just made longer.
Let's lighten the load a bit and poll less frequent, once in 30s.
Changed the info message about lease expiring soon to more friendly "ending in 5 minutes".
Also, use effective_begin_time + effective_duration for end time calculation. Once scheduled leases are implemented these may differ from begin_time and duration.

(cherry picked from commit 3f9449b)
this allows to create scheduled leases that will start at the requested time. At begin_time the lease will start acquisition that may be delayed or fail if the selected exporter is not available, following the lease acquisition timeout setting.

(cherry picked from commit 68f44f6)
"jmp get exporters --with leases" shows lease status and when is the lease expiring. That's more useful that current start time which doesn't tell you for how long it may be held.
"jmp get leases" now shows lease begin time (the time it was acquired) in addition to duration.
future/scheduled leases show their expected begin time and duration, currently active leases show actual begin time and actual duration so far.

(cherry picked from commit f1a1aec)
this accounts for ended leases as well. If present it has the actual end time of the lease.
change column to RELEASE TIME to make sense for ended leases as well

(cherry picked from commit 3abd886)
this indicates to the server that we want to see ended leases as well.
Default behavior is to only get non-ended leases (pending or currently active)

(cherry picked from commit 6d94924)
Use "make protobuf-gen" to be consistent with controller. In python the imports need to be post-processed, unfortunately.

(cherry picked from commit 160db62)
(cherry picked from commit b2ce590)
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Oct 23, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@mangelajo mangelajo enabled auto-merge October 23, 2025 15:09
@mangelajo mangelajo merged commit 72e6151 into release-0.7 Oct 23, 2025
14 checks passed
@mangelajo mangelajo deleted the backport-704-to-release-0.7 branch October 23, 2025 15:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants