Add download retries option (#9911)

Signed-off-by: tu1h <lihai.tu@daocloud.io>
This commit is contained in:
tu1h
2023-03-22 00:38:12 +08:00
committed by GitHub
parent f73b941d8a
commit 8cf5fefe84
3 changed files with 8 additions and 5 deletions

View File

@@ -60,7 +60,7 @@
register: pull_task_result
until: pull_task_result is succeeded
delay: "{{ retry_stagger | random + 3 }}"
retries: 4
retries: "{{ download_retries }}"
become: "{{ user_can_become_root | default(false) or not download_localhost }}"
environment: "{{ proxy_env if container_manager == 'containerd' else omit }}"
when:
@@ -101,7 +101,7 @@
register: upload_image
failed_when: not upload_image
until: upload_image is succeeded
retries: 4
retries: "{{ download_retries }}"
delay: "{{ retry_stagger | random + 3 }}"
when:
- pull_required