Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default task group in dag.add_task method #25000

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

blcksrx
Copy link
Contributor

@blcksrx blcksrx commented Jul 12, 2022

Closes: #24996

@potiuk
Copy link
Member

potiuk commented Jul 12, 2022

Tests need fixing and likely new tests for this specific case should be added

@blcksrx blcksrx force-pushed the AIRFLOW-24996 branch 5 times, most recently from d007ab1 to a0a4a5c Compare July 26, 2022 08:32
tests/models/test_dag.py Outdated Show resolved Hide resolved
@uranusjr
Copy link
Member

This has a weird side effect that the task is identified in the DAG under a different task_id than the task_id attribute set on that task object. I don’t think I am particularly fond with it.

@blcksrx
Copy link
Contributor Author

blcksrx commented Jul 26, 2022

Yeah Indeed, Im working on it

@uranusjr
Copy link
Member

When you fix the task_id issue, please also add a line in the test to ensure task_with_task_group.task_id is correctly prefixed by the task group ID.

Signed-off-by: Hossein Torabi <blcksrx@gmail.com>
@blcksrx
Copy link
Contributor Author

blcksrx commented Aug 1, 2022

When you fix the task_id issue, please also add a line in the test to ensure task_with_task_group.task_id is correctly prefixed by the task group ID.

@uranusjr done!

@potiuk potiuk merged commit ce0a6e5 into apache:main Aug 5, 2022
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Aug 15, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.3.4 milestone Aug 15, 2022
ephraimbuddy pushed a commit that referenced this pull request Aug 15, 2022
Signed-off-by: Hossein Torabi <blcksrx@gmail.com>
(cherry picked from commit ce0a6e5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Airflow doesn't set default task group while calling dag.add_tasks
4 participants