Set timeouts on uri tasks
uri task has a 30 second timeout by default, and in a greenfield or new host deploy these tasks are always expected to fail, so the timeout is expected to be met multiple times. We should set a small timeout on these tasks to fail quickly. Change-Id: I6748bbd894585d97cce235e854afbcf9d433d34d
This commit is contained in:
parent
d18a991c48
commit
dc5c38331c
@ -21,6 +21,7 @@
|
||||
uri:
|
||||
url: "{{ pip_upstream_url }}"
|
||||
method: "HEAD"
|
||||
timeout: 3
|
||||
register: _repo_data_check
|
||||
failed_when: false
|
||||
when: pip_upstream_url != "https://bootstrap.pypa.io/get-pip.py"
|
||||
|
@ -22,6 +22,7 @@
|
||||
uri:
|
||||
url: "{{ pip_install_upper_constraints }}"
|
||||
method: "HEAD"
|
||||
timeout: 3
|
||||
register: upper_constraints_check
|
||||
failed_when: false
|
||||
tags:
|
||||
@ -31,6 +32,7 @@
|
||||
uri:
|
||||
url: "{{ pip_default_index }}"
|
||||
method: "HEAD"
|
||||
timeout: 3
|
||||
register: pip_default_index_check
|
||||
failed_when: false
|
||||
tags:
|
||||
|
Loading…
Reference in New Issue
Block a user