Skip to content

Commit

Permalink
gc.yml: address a race condition (ansible-collections#80)
Browse files Browse the repository at this point in the history
Wait until the job is actually deleted before checking the final state.
  • Loading branch information
goneri authored Apr 22, 2021
1 parent 361061c commit 9384742
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions molecule/default/tasks/gc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9384742

Please sign in to comment.