From b625247d5b5a84ccd5e88d2ccf2ccebe8958702f Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 24 Oct 2026 23:00:18 +0200 Subject: [PATCH] perf(web-app-openwebui): poll the MCP grant every 3 s instead of every 10 s The grant runs right after compose up recreated Open WebUI, so its first attempt meets a server that is still starting; full-7 and full-8 both logged one retry and spent 21.9 s and 21.6 s on the task, most of it the fixed 10 s delay. retries 100 with delay 3 keeps the 300 s budget for a refusing server and lets the second attempt start after 3 s. A server that accepts and then hangs costs each attempt up to the script's 30 s urlopen timeout, so that failure now surfaces after about 3300 s instead of 1200 s; it fails the same way. Co-Authored-By: Claude Opus 5.5 (1M context) --- roles/web-app-openwebui/tasks/utils/mcp_grants.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/web-app-openwebui/tasks/utils/mcp_grants.yml b/roles/web-app-openwebui/tasks/utils/mcp_grants.yml index fd326ccc39..98fe64bb54 100644 --- a/roles/web-app-openwebui/tasks/utils/mcp_grants.yml +++ b/roles/web-app-openwebui/tasks/utils/mcp_grants.yml @@ -24,8 +24,8 @@ - "-" stdin: "{{ lookup('file', 'python/provision_mcp_grants.py') }}" register: openwebui_mcp_grants - retries: 30 - delay: 10 + retries: 100 + delay: 3 until: openwebui_mcp_grants.rc == 0 changed_when: openwebui_mcp_grants.stdout.startswith('CHANGED') no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"