Repository navigation
Java SDK: Let a native Java Dag set one queue for all its tasks - #74538
Draft
jason810496 wants to merge 1 commit into
Draft
jason810496 wants to merge 1 commit into
jason810496 wants to merge 1 commit into
Conversation
Every task of a native Java Dag runs on the Java coordinator, so each one needs a queue that queue_to_coordinator routes there. Airflow's Dag has no queue setting, so authors had to repeat the same queue on every task. The Go and TypeScript SDKs already take a Dag-level queue that each task inherits unless it sets its own; this gives Java the same. Co-Authored-By: Claude <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Every task of a native Java Dag runs on the Java coordinator, so each one needs a queue that
[sdk] queue_to_coordinatorroutes there. Airflow's Dag has no queue setting, so authors had to repeat the same queue on every task. The Go and TypeScript SDKs already take a Dag-level queue; this gives Java the same.What changes
queuecan be set once on the Dag, in both styles. Each task inherits it, unless the task sets its ownqueue.TriggerDagRuntasks inherit the queue too, a task's own queue always wins, and the queue is never written on the serialized Dag itself.queue = "java", which the README's setup already routes to the Java coordinator.Was generative AI tooling used to co-author this PR?