Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 8f956f3

Browse files
drazenCEgregharveyfiliprupicfiliptymofiisobchenko
authored
Adding delay opcache status check pr devel 1.x (#736)
* Php unix socket pr 1.x (#724) * Moving cachetool adapter setup to the installer role and adding a test. * Updating cachetool documentation. * Php unix socket pr 1.x (#726) * Moving cachetool adapter setup to the installer role and adding a test. * Updating cachetool documentation. * Making sure _cachetool_adapter is always set. * Optional-drush-cr-before-import (#728) * 73171 fixing cachetool checks fpm pr 1.x (#729) * skipping cachetool check when no fpm * remove empty line --------- Co-authored-by: filip <filip.rupic@codeenigma.com> * asg_management_fix_and_improve (#733) * asg_management_fix_and_improve * asg_management_fix_and_improve * asg_management_fix_and_improve * asg_management_fix_and_improve * asg_management_fix_and_improve * Adding-delay-opcache-status-check * Removing-failed-when --------- Co-authored-by: Greg Harvey <greg.harvey@gmail.com> Co-authored-by: Filip Rupic <123341158+filiprupic@users.noreply.github.com> Co-authored-by: filip <filip.rupic@codeenigma.com> Co-authored-by: tymofiisobchenko <104431720+tymofiisobchenko@users.noreply.github.com>
1 parent 157423e commit 8f956f3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

roles/cli/cachetool/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
cachetool:
33
version: "" # enter three-digit version number, e.g. "7.0.0", to install a specific version. If not specified, will be installed depending on the php version.
44
unix_socket: false # Set to true to use automatic detection of Unix socket as set by ce-provision
5+
check_retries: 5
6+
check_delay: 20
57
# Adapter string to use as argument.
68
# e.g.
79
# --fcgi=127.0.0.1:9000

roles/cli/cachetool/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@
107107
ansible.builtin.command:
108108
cmd: "{{ cachetool_bin }} {{ _cachetool_adapter }} -n opcache:status"
109109
when: _php_version.stdout | length > 0
110+
register: opcache_status_check
111+
retries: "{{ cachetool.check_retries }}"
112+
delay: "{{ cachetool.check_delay }}"
113+
until: opcache_status_check.rc == 0

0 commit comments

Comments
 (0)