fix(cron): skip isolated runs when local providers are down

This commit is contained in:
Peter Steinberger
2026-04-28 02:12:03 +01:00
parent 4e63f710f1
commit a66605bf23
9 changed files with 523 additions and 0 deletions

View File

@@ -215,6 +215,13 @@ that as an exact user selection. If the configured Ollama `baseUrl` is
unreachable, the next reply fails with the provider error instead of silently
answering from another configured fallback model.
Isolated cron jobs do one extra local safety check before they start the agent
turn. If the selected model resolves to a local, private-network, or `.local`
Ollama provider and `/api/tags` is unreachable, OpenClaw records that cron run
as `skipped` with the selected `ollama/<model>` in the error text. The endpoint
preflight is cached for 5 minutes, so multiple cron jobs pointed at the same
stopped Ollama daemon do not all launch failing model requests.
Live-verify the local text path, native stream path, and embeddings against
local Ollama with: