diff --git a/cwltool/job.py b/cwltool/job.py index 10280f9a7..817cb04c0 100644 --- a/cwltool/job.py +++ b/cwltool/job.py @@ -913,7 +913,7 @@ def docker_monitor( self.name, int((max_mem_percent / 100 * max_mem) / (2**20)), ) - if cleanup_cidfile: + if cleanup_cidfile and os.path.exists(cidfile): os.remove(cidfile)