Skip to content

Commit 46e0405

Browse files
committed
Support Podman version 5.x which autodeletes the cidfiles. Fixes: #2001
1 parent ba051d3 commit 46e0405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/job.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ def docker_monitor(
913913
self.name,
914914
int((max_mem_percent / 100 * max_mem) / (2**20)),
915915
)
916-
if cleanup_cidfile:
916+
if cleanup_cidfile and os.path.exists(cidfile):
917917
os.remove(cidfile)
918918

919919

0 commit comments

Comments
 (0)