Skip to content

Fixed Java SDK cordinator-mode not retrying failed tasks #67936

Open
onlyarnav wants to merge 2 commits into
apache:mainfrom
onlyarnav:fix-java-sdk-retry
Open

Fixed Java SDK cordinator-mode not retrying failed tasks #67936
onlyarnav wants to merge 2 commits into
apache:mainfrom
onlyarnav:fix-java-sdk-retry

Conversation

@onlyarnav
Copy link
Copy Markdown

This PR fixes an issue where the Java SDK reports every task failure as a terminal TaskState(FAILED) frame in coordinator mode, preventing retries from taking effect.
The Java runtime SDK's Task.kt has been updated to check for shouldRetry inside the task context, properly returning a RetryTask when true.
Tests have been included and verified against Gradle.

Issue Fixed: #67798

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

@boring-cyborg
Copy link
Copy Markdown

boring-cyborg Bot commented Jun 3, 2026

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example Dag that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

@onlyarnav
Copy link
Copy Markdown
Author

@jason810496 can you please review the PR and approve or suggest changes

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.

AIP-108: Java SDK coordinator-mode task failures never transition to UP_FOR_RETRY

1 participant