Skip to content

Handle plain Step Functions execution errors - #73881

Merged
vincbeck merged 2 commits into
apache:mainfrom
jingi723:fix/sfn-plain-error-output
Oct 5, 2026
Merged

vincbeck merged 2 commits into
apache:mainfrom
jingi723:fix/sfn-plain-error-output

Conversation

@jingi723

@jingi723 jingi723 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

StepFunctionGetExecutionOutputOperator raises JSONDecodeError when DescribeExecution returns an ordinary error such as States.TaskFailed. AWS documents error as a string, whereas output contains JSON data.

Return non-JSON errors unchanged, including empty strings. Preserve JSON-decoded error return values for compatibility and keep invalid success output and service exceptions visible. Document that fetching an error may complete the Airflow task successfully; checking remote execution success remains the responsibility of StepFunctionExecutionSensor. The documentation also explains the constraints on string results with multiple_outputs and dynamic task mapping.

Validation on upstream 5799660c4d41e95b8c3ce836bd9003c3e4f3a998, Python 3.10 in the official Linux/amd64 Breeze CI image:

  • Related Step Functions operator, hook, sensor and trigger tests: 38 passed with two workers after the rebase and review changes. The new client-backed regression explicitly closes its boto3 client.
  • Initial before/after regression: 4 failures against the unchanged operator; all related tests pass with the fix. SDK responses use botocore Stubber, not live AWS.
  • Regular/manual prek, provider mypy, commit-message checks and git diff --check passed. Selective-check was run against the complete PR diff.
  • The wider dependent-provider and Airflow-version matrices, documentation build, live AWS and full task-runner/XCom integration were not run locally.

Was generative AI tooling used to co-author this PR?
  • Yes — OpenAI Codex (GPT-6)

Generated-by: OpenAI Codex (GPT-6) following the guidelines

Comment thread providers/amazon/docs/changelog.rst Resolved
@jingi723
jingi723 force-pushed the fix/sfn-plain-error-output branch from 95016c0 to 99b27dc Compare September 30, 2026 03:02
@jingi723

jingi723 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

The requested changelog removal is addressed, and the related tests and local checks passed. Could a maintainer approve the pending CI runs and take another look when available? Thanks!

@vincbeck
vincbeck merged commit 9b2cc13 into apache:main Oct 5, 2026
83 checks passed
@boring-cyborg

boring-cyborg Bot commented Oct 5, 2026

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants