Skip to content

Commit 7633a6c

Browse files
Update components/job-orchestration/job_orchestration/garbage_collector/utils.py
Co-authored-by: Lin Zhihao <[email protected]>
1 parent 34a06a5 commit 7633a6c

File tree

1 file changed

+3
-3
lines changed
  • components/job-orchestration/job_orchestration/garbage_collector

1 file changed

+3
-3
lines changed

components/job-orchestration/job_orchestration/garbage_collector/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ def get_candidates(self) -> Set[str]:
125125

126126
def persist_new_candidates(self) -> None:
127127
"""
128-
Writes any new candidates from `_candidates_to_persist` to the recovery file and clears
129-
the buffer.
130-
The method returns immediately without writing if `_candidates_to_persist` is empty.
128+
Persists any new deletion candidates buffered in `_candidates_to_persist` by appending them
129+
to the recovery file, then clears `_candidates_to_persist`.
130+
This method returns immediately if `_candidates_to_persist` is empty.
131131
"""
132132
if len(self._candidates_to_persist) == 0:
133133
return

0 commit comments

Comments
 (0)