Skip to content

Workflow branch executor: return truthful async runner dispatch result#420

Merged
chubes4 merged 1 commit into
mainfrom
fix-1149-truthful-async-runner
Jul 12, 2026
Merged

Workflow branch executor: return truthful async runner dispatch result#420
chubes4 merged 1 commit into
mainfrom
fix-1149-truthful-async-runner

Conversation

@chubes4

@chubes4 chubes4 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Problem

trigger_async_runner() returned the full worker count even when every loopback request failed, fabricating dispatch success; callers could not fall back.

Fix

Count only accepted loopback responses from Requests::request_multiple(); return 0 when all fail. New smoke test covering all-failed and mixed cases.

Context

Discovered on a WP Cloud runtime with no reachable loopback (connection refused on 127.0.0.1:80/443) and DISABLE_WP_CRON=true, where Action Scheduler jobs stayed pending forever while the executor reported success. Downstream consumer fix lands separately in the wp-build repo (GHE chubes4/wp-build#1149).

AI assistance

  • AI assistance: Yes
  • Tool(s): Claude (Anthropic claude-fable-5) via OpenCode; subagent fleet drafted the fix
  • Used for: Root-cause investigation on the runtime, drafting the fix and smoke tests

@chubes4 chubes4 merged commit 14c0603 into main Jul 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant