diff options
author | antoine-fl <antoine.vandecreme@fretlink.com> | 2021-06-03 11:58:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 11:58:52 +0200 |
commit | 9acacc758eb866c88be1cb3d5867efdad1e79428 (patch) | |
tree | 0acb1fcfcbc0f2242fc3a8f9c8b214a7dddcb4f2 | |
parent | e38cc06337f74c4ab841e09e4be254ddbf3faab7 (diff) | |
parent | 32a91c16e473521bb2b9b7303752fb2cae7906b6 (diff) | |
download | ansible-clever-2.10.tar.gz ansible-clever-2.10.tar.zst ansible-clever-2.10.zip |
Merge pull request #79 from antoine-fl/bump_clever_waiting_timev2.10
Bump clever waiting time to 1 hour
-rw-r--r-- | tasks/deploy.yml | 6 | ||||
-rw-r--r-- | tasks/redeploy.yml | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml index 39b5845..0875eae 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml | |||
@@ -58,21 +58,21 @@ | |||
58 | chdir: "{{ clever_app_root }}" | 58 | chdir: "{{ clever_app_root }}" |
59 | environment: | 59 | environment: |
60 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 60 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
61 | async: 2400 # 40 minutes | 61 | async: 3600 # 1 hour |
62 | poll: 0 | 62 | poll: 0 |
63 | ignore_errors: true | 63 | ignore_errors: true |
64 | register: clever_deploy | 64 | register: clever_deploy |
65 | tags: | 65 | tags: |
66 | - skip_ansible_lint | 66 | - skip_ansible_lint |
67 | 67 | ||
68 | - name: Wait up to 40 minutes for deployment completion | 68 | - name: Wait up to 1 hour for deployment completion |
69 | async_status: | 69 | async_status: |
70 | jid: "{{ clever_deploy.ansible_job_id }}" | 70 | jid: "{{ clever_deploy.ansible_job_id }}" |
71 | register: job_result | 71 | register: job_result |
72 | until: job_result.finished | 72 | until: job_result.finished |
73 | ignore_errors: true | 73 | ignore_errors: true |
74 | delay: 30 | 74 | delay: 30 |
75 | retries: 80 # 40 minutes (80 * 30 secs delay) | 75 | retries: 120 # 1 hour (120 * 30 secs delay) |
76 | 76 | ||
77 | ################################################################## | 77 | ################################################################## |
78 | # Re-deploy only if its the first clever deploy for that project # | 78 | # Re-deploy only if its the first clever deploy for that project # |
diff --git a/tasks/redeploy.yml b/tasks/redeploy.yml index 38068da..fbfebf3 100644 --- a/tasks/redeploy.yml +++ b/tasks/redeploy.yml | |||
@@ -16,18 +16,18 @@ | |||
16 | chdir: "{{ clever_app_root }}" | 16 | chdir: "{{ clever_app_root }}" |
17 | environment: | 17 | environment: |
18 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 18 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
19 | async: 2400 # 40 minutes | 19 | async: 3600 # 1 hour |
20 | poll: 0 | 20 | poll: 0 |
21 | ignore_errors: true | 21 | ignore_errors: true |
22 | register: clever_deploy | 22 | register: clever_deploy |
23 | tags: | 23 | tags: |
24 | - skip_ansible_lint | 24 | - skip_ansible_lint |
25 | 25 | ||
26 | - name: Wait up to 40 minutes for deployment completion | 26 | - name: Wait up to 1 hour for deployment completion |
27 | async_status: | 27 | async_status: |
28 | jid: "{{ clever_deploy.ansible_job_id }}" | 28 | jid: "{{ clever_deploy.ansible_job_id }}" |
29 | register: job_result | 29 | register: job_result |
30 | until: job_result.finished | 30 | until: job_result.finished |
31 | ignore_errors: true | 31 | ignore_errors: true |
32 | delay: 30 | 32 | delay: 30 |
33 | retries: 80 # 40 minutes (80 * 30 secs delay) | 33 | retries: 120 # 1 hour (120 * 30 secs delay) |