Skip to content

fix: always call writeOutput on connector SUCCEEDED#7135

Merged
pingsutw merged 1 commit intov2from
pvditt/fix-connector-nil-outputs
Apr 1, 2026
Merged

fix: always call writeOutput on connector SUCCEEDED#7135
pingsutw merged 1 commit intov2from
pvditt/fix-connector-nil-outputs

Conversation

@pvditt
Copy link
Copy Markdown
Contributor

@pvditt pvditt commented Apr 1, 2026

Summary

  • When a connector task succeeds but returns nil outputs (relying on file-based outputs written to remote storage), writeOutput was skipped entirely, leaving the BufferedOutputWriter without a reader
  • This caused ValidateOutput to fail with "Outputs not generated by task execution"
  • Always call writeOutput on SUCCEEDED so the RemoteFileOutputReader fallback is used when outputs are nil, matching v1 behavior

Test plan

  • Existing connector plugin tests pass (go test ./flyteplugins/go/tasks/plugins/webapi/connector/...)
  • Run connector tasks (e.g. examples/basics/connectors.py) with executor-v2 and verify outputs are resolved correctly

🤖 Generated with Claude Code

…ased outputs

When a connector task succeeds but returns nil outputs (relying on
file-based outputs written to remote storage), writeOutput was skipped
entirely, leaving the BufferedOutputWriter without a reader. This caused
ValidateOutput to fail with "Outputs not generated by task execution".

Always call writeOutput on SUCCEEDED so the RemoteFileOutputReader
fallback is used when outputs are nil, matching v1 behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot mentioned this pull request Apr 1, 2026
3 tasks
@pingsutw pingsutw merged commit 6be7e1a into v2 Apr 1, 2026
17 checks passed
@pingsutw pingsutw deleted the pvditt/fix-connector-nil-outputs branch April 1, 2026 21:50
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.

2 participants