Skip to content

Commit d8ca542

Browse files
committed
fixup! fix: Don't clean sandboxes which are on S3
1 parent 351ee8c commit d8ca542

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DIRAC/WorkloadManagementSystem/DB/SandboxMetadataDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def getUnusedSandboxes(self):
310310
f"! Assigned AND TIMESTAMPDIFF( DAY, LastAccessTime, UTC_TIMESTAMP() ) >= {self.__unassignedSBGraceDays}",
311311
]
312312
# Exclude sandboxes that are in S3 as those are handled by DiracX
313-
sqlCmd = f"SELECT SBId, SEName, SEPFN FROM `sb_SandBoxes` WHERE SEPFN not like '/S3/%' AND ( {' ) OR ( '.join(sqlCond)} )"
313+
sqlCmd = f"SELECT SBId, SEName, SEPFN FROM `sb_SandBoxes` WHERE SEPFN not like '/S3/%' AND (( {' ) OR ( '.join(sqlCond)} ))"
314314
return self._query(sqlCmd)
315315

316316
def deleteSandboxes(self, SBIdList):

0 commit comments

Comments
 (0)