From 5c43da44ff9a7d1e55af441b7c889a736ce399b5 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Mon, 8 Jul 2024 10:47:37 +0200 Subject: [PATCH] Support Podman version 5.x which autodeletes the cidfiles. Fixes: #2001 --- cwltool/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)