fix(providers/databricks): DatabricksWorkflowTaskGroup launch task now waits for upstream tasks#67369
Conversation
…w waits for upstream tasks
|
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
|
|
@shubhgurav0590 A few things need addressing before review — see our Pull Request quality criteria.
No rush. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. Drafted-by: Claude Code (Opus 4.7); reviewed by @potiuk before posting |
|
"After running CI I found my fix was incorrect — it created a DAG cycle (launch → inner_task → launch). I've reverted the change. |
jroachgolf84
left a comment
There was a problem hiding this comment.
Hmmmm, I don't think that there are any changes here. Am I missing something?
:)
|
"Hi @jroachgolf84 — you're correct, I reverted my initial fix after CI showed it created a DAG cycle. |
|
@shubhgurav0590 A few things need addressing before review — see our Pull Request quality criteria.
No rush. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. Drafted-by: Claude Code (Opus 4.7); reviewed by @potiuk before posting |
|
@shubhgurav0590 Converting to draft — this PR does not yet meet our Pull Request quality criteria.
See the linked criteria for how to fix each item, then mark the PR "Ready for review". This is not a rejection — just an invitation to bring the PR up to standard. No rush. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. |
|
Closing as a stale triaged draft — no update in ~9 days since the triage note. No worries: reopen this or open a fresh PR whenever you're ready to continue. Thanks for the contribution! |
Closes #51598
Problem
When using DatabricksWorkflowTaskGroup, the internal launch task
ignored upstream task dependencies and executed immediately at DAG
start, regardless of trigger_rule configuration.
Fix
Added
create_databricks_workflow_task.set_upstream(root_task)inthe
__exit__method so the launch task correctly waits for allupstream dependencies before executing.
Changes
databricks_workflow.pytest_launch_task_waits_for_upstream_tasksvalidating that launch task correctly registers upstream task IDs
Testing
Unit test added in
test_databricks_workflow.pycovering theexternal upstream dependency scenario from issue #51598.
Note on DAG Graph Screenshots
Previous PR #53559 was asked for before/after DAG graph screenshots.
Running into Windows/WSL encoding issues with Breeze setup.
Can provide screenshots if required during review — happy to
set up on a Linux environment if needed.
Note
🛠️ Maintainer triage note for @shubhgurav0590 · by
@potiuk· 2026-06-18 21:56 UTCClosing to keep the review queue clean — this draft was triaged ~9 days ago and there's been no update since:
Automated triage — may be imperfect; a maintainer takes the next look.