From 9384742bdcb2dc4ef271a9037fda5be34e14c515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= <goneri@lebouder.net> Date: Thu, 22 Apr 2021 13:51:02 -0400 Subject: [PATCH] gc.yml: address a race condition (#80) Wait until the job is actually deleted before checking the final state. --- molecule/default/tasks/gc.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/molecule/default/tasks/gc.yml b/molecule/default/tasks/gc.yml index a5b0cf526d..aee5f3a865 100644 --- a/molecule/default/tasks/gc.yml +++ b/molecule/default/tasks/gc.yml @@ -191,6 +191,8 @@ delete_options: preconditions: uid: "{{ job.result.metadata.uid }}" + wait: yes + wait_timeout: 100 - name: Check that job is deleted k8s_info: