From dd9160135d991b052db2e6461c1e8cd699cee857 Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Tue, 12 Mar 2024 10:57:57 -0400 Subject: [PATCH] Prune dangle image periodically (#14957) Prune dangle image periodically pairs with https://github.com/ansible/ansible-runner/pull/1342 this fix the problem of us forcefully remove images when setting changing ee image that's being used in a job causing the job to fail --- awx/main/tasks/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks/system.py b/awx/main/tasks/system.py index 44654e630b03..bca9d16c055f 100644 --- a/awx/main/tasks/system.py +++ b/awx/main/tasks/system.py @@ -417,7 +417,7 @@ def handle_removed_image(remove_images=None): @task(queue=get_task_queuename) def cleanup_images_and_files(): - _cleanup_images_and_files() + _cleanup_images_and_files(image_prune=True) @task(queue=get_task_queuename)