Skip to content

fix: wait for stdout read before resolving local command - #3676

Open
schmidtnz wants to merge 2 commits into
masterfrom
fix/docker-command-wait-for-close
Open

schmidtnz wants to merge 2 commits into
masterfrom
fix/docker-command-wait-for-close

Conversation

@schmidtnz

Copy link
Copy Markdown

Motivation

ExecutorLocal resolved on the child's exit event. That event can fire before stdout/stderr have been fully read, so commands sometimes returned empty or cut-off output when the event loop was busy.
This lead to randomly stuck or failing ETL in Argo Workflows.

Modifications

  • Resolve on close instead of exit, so the result is only returned once stdout/stderr are fully read.
  • Reject when the spawn fails (e.g. ENOENT) instead of crashing on an unhandled error event. (not required but added for tidyness)

Verification

Added tests

This branch was successfully deployed

1 active deployment
preprod — 4d23686c Deployed Nov 9, 2026 by schmidtnz via validate screenshots #3922
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