From f24505cd7a416b4938d6f127517f1c8d468c4650 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Fri, 25 Oct 2024 14:55:35 -0500 Subject: [PATCH] need to flip if --- iceprod/server/plugins/condor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iceprod/server/plugins/condor.py b/iceprod/server/plugins/condor.py index 4652a039..6d5a2438 100644 --- a/iceprod/server/plugins/condor.py +++ b/iceprod/server/plugins/condor.py @@ -920,7 +920,7 @@ async def check_submit_dir(self): logger.debug('stat: %r', st) if stat.S_ISDIR(st.st_mode): empty = False - if job_active: + if not job_active: if st.st_mtime < job_clean_logs_time: logger.info('cleaning up submit dir %s', path) shutil.rmtree(path)