Skip to content

Add async Kotlin client support to the Java SDK - #69997

Closed
shaealh wants to merge 1 commit into
apache:mainfrom
shaealh:shaealh/airflow-67683-async-kotlin
Closed

shaealh wants to merge 1 commit into
apache:mainfrom
shaealh:shaealh/airflow-67683-async-kotlin

Conversation

@shaealh

@shaealh shaealh commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Closes #67683

Why

The Java SDK currently exposes blocking task and client APIs. Kotlin tasks need coroutine-native equivalents so suspending functions can call Airflow APIs without blocking for each request.

What

  • Add coroutine-native AsyncClient and AsyncTask APIs.
  • Add an asynchronous coordinator transport and task-runner dispatch.
  • Preserve the existing synchronous Client and Task behavior.
  • Extend BuilderProcessor to recognize Kotlin suspend functions.
  • Support Context, XCom inputs, and non-Unit return values in generated asynchronous tasks.
  • Add KAPT integration, suspension, concurrency, failure, and client-forwarding tests.
  • Document Kotlin coroutine task usage.

Testing

  • ./gradlew clean build --console=plain -Pkotlin.incremental=false
  • ./gradlew :sdk:check :processor:check --console=plain -Pkotlin.incremental=false
  • Repository commit hooks passed, except lychee-docker, which could not run because Docker was unavailable.
Was generative AI tooling used to co-author this PR?

[X] Yes (OpenAI Codex)


Important

🛠️ Maintainer triage note for @shaealh · by @potiuk · 2026-07-18 15:46 UTC

Helpful heads-up from the maintainers — please address before this PR can be reviewed:

  • ❌ Merge conflicts: with main. See docs.

See the Pull Request quality criteria for details.

The ball is in your court — you've been assigned to this PR. Fix the above, then mark it Ready for review.

Automated triage — may be imperfect; a maintainer takes the next look.

@shaealh
shaealh marked this pull request as ready for review July 17, 2026 06:42
@potiuk
potiuk marked this pull request as draft July 18, 2026 15:47
@shaealh
shaealh force-pushed the shaealh/airflow-67683-async-kotlin branch from eceeea1 to b226668 Compare July 18, 2026 22:25
@shaealh
shaealh marked this pull request as ready for review July 18, 2026 22:34

@jason810496 jason810496 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On hold this PR at this moment as #67683 (comment) comment pointed out.

@jason810496

Copy link
Copy Markdown
Member

Close the PR as mentioned in #69997 (review).

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.

Async Kotlin client in Java SDK

2 participants