Remove use of async when compressing static files

This may be a source of CI failures, but can be reverted if found
not to be the case.

Change-Id: I4675be904a7c0577d68208e075496e31e1f7e8fe
This commit is contained in:
Jonathan Rosser 2024-09-04 13:46:19 +01:00
parent 9cd532924e
commit 861f5b989e
2 changed files with 0 additions and 18 deletions

View File

@ -144,9 +144,6 @@
become_user: "{{ horizon_system_user_name }}" become_user: "{{ horizon_system_user_name }}"
changed_when: false changed_when: false
notify: Restart wsgi process notify: Restart wsgi process
register: async_compress_static_files
async: 600
poll: 0
- name: Register DB session cleanup cron - name: Register DB session cleanup cron
cron: cron:

View File

@ -87,21 +87,6 @@
tags: tags:
- horizon-config - horizon-config
# NOTE(mhayden): The async_status check here must be done as the horizon user
# since the original task ran as that user. This task will fail if it is run
# as root because the async status file is within the horizon user's home
# directory, not root's home directory.
- name: Ensure static files are compressed
async_status:
jid: "{{ async_compress_static_files.ansible_job_id }}"
become: yes
become_user: "{{ horizon_system_user_name }}"
register: async_compress_static_files_check
until: async_compress_static_files_check.finished
retries: 300
tags:
- horizon-config
- name: Importing uwsgi/apache tasks - name: Importing uwsgi/apache tasks
import_tasks: "{{ (horizon_use_uwsgi | bool) | ternary('horizon_uwsgi.yml', 'horizon_apache.yml') }}" import_tasks: "{{ (horizon_use_uwsgi | bool) | ternary('horizon_uwsgi.yml', 'horizon_apache.yml') }}"
tags: tags: