chore(release): prepare 0.4.1 (#6570)
Prepare version 0.4.1 and document the retained legacy upgrade path. Avoid false busy update handoffs from disabled or not-yet-due idle scans. Keep real work, maintenance, lease and data-protection checks intact. Retain safe package-failure diagnostics and cancellable test-controller progress checks. Reduce Windows installer startup contention without changing command deadlines or behavioral assertions. Validated on the reviewed head with all required PR checks and the exact five-platform candidate. Historical package and recovery coverage remains as documented in the release acceptance record. Publication is separate; this merge does not create a tag, release, upload or feed change.
This commit is contained in:
1 parent
1a89a25abd
commit
cdaae66c89
15 files changed
+310
-37
No files matched your search
+10
-4
@@ -1368,11 +1368,17 @@ class AgentLoop:
|
||||
)
|
||||
return result
|
||||
|
||||
def _idle_compact_check_due(self, now: float) -> bool:
|
||||
return (
|
||||
self.auto_compact.enabled
|
||||
and not self.bus.admission.paused
|
||||
and not self._idle_compact_check_running
|
||||
and now >= self._next_idle_compact_check_at
|
||||
)
|
||||
|
||||
async def _check_expired_sessions_if_due(self) -> None:
|
||||
if self.bus.admission.paused or self._idle_compact_check_running:
|
||||
return
|
||||
now = time.monotonic()
|
||||
if now < self._next_idle_compact_check_at:
|
||||
if not self._idle_compact_check_due(now):
|
||||
return
|
||||
self._next_idle_compact_check_at = now + self._idle_compact_check_interval_s
|
||||
self._idle_compact_check_running = True
|
||||
@@ -1402,7 +1408,7 @@ class AgentLoop:
|
||||
msg = await self.bus.consume_inbound()
|
||||
except asyncio.TimeoutError:
|
||||
# Storage may wait behind a turn that /stop needs to cancel.
|
||||
if not self.bus.admission.paused:
|
||||
if self._idle_compact_check_due(time.monotonic()):
|
||||
self.schedule_background(self._check_expired_sessions_if_due())
|
||||
continue
|
||||
except asyncio.CancelledError:
|
||||
|
||||
Reference in new issue
Block a user