Skip to content

Commit 8e8dda2

Browse files
authored
Merge pull request #535 from epfl-si/fix/backup-timeout-after-8h
[fix] Time out the backup step after 8h
2 parents 03fd4a1 + 42d5f46 commit 8e8dda2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ansible/roles/wordpress-instance/tasks/backup.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- "../../../vars/secrets-{{ openshift_namespace }}.yml" # Used in env-secrets.yml
1717

1818
- name: Backup
19+
timeout: "{{ backup_timeout_seconds }}"
1920
environment: "{{ backup_restic_environment }}" # `-vv`-safe!
2021
shell:
2122
executable: /bin/bash

ansible/roles/wordpress-instance/vars/backup-vars.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ backup_aws_s3api_jq_sum_cmd: >-
2020
backup_aws_s3api_jq_count_cmd: >-
2121
jq '.Contents | length'
2222
23+
backup_timeout_seconds: "{{ 8 * 3600 }}" # 8 hours
24+
2325
backup_url_label: "{{ wp_base_url | ensure_trailing_slash }}"
2426
backup_curl_to_pushgateway_cmd: >-
2527
curl -X POST -H "Content-Type: text/plain" --data-binary @-

0 commit comments

Comments
 (0)