We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90f8ce commit b99d290Copy full SHA for b99d290
1 file changed
diracx-logic/src/diracx/logic/jobs/sandboxes.py
@@ -291,4 +291,8 @@ async def _delete_chunk(chunk: list[int], _sem: asyncio.Semaphore = sem) -> int:
291
total_deleted,
292
)
293
294
+ # If we got fewer than batch_size, there are no more candidates
295
+ if len(sb_ids) < batch_size:
296
+ break
297
+
298
return total_deleted
0 commit comments