Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions python/sglang/srt/mem_cache/buffer_mode/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,15 @@ def reset(self) -> None:
self._anchor_lock_cap_skips = 0

def is_idle(self) -> bool:
"""No queued or in-flight operation holds host staging or can restart I/O."""
"""No pending or in-flight buffer-mode transfer work."""
return not (
self.pending_write_queue
self.pending_hit_allocs
or self.staged_prefetches
or self.ongoing_buffer_load_back
or self.pending_write_queue
or self.inflight_backup_node_ids
or self.ongoing_write_through
or self.ongoing_backup
or self.ongoing_buffer_load_back
)

# ---- backup pipeline (device -> staging -> storage) ----
Expand Down
Loading