Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Jul 22, 2025

Since we now use those from Task SDK

In [1]: from airflow.decorators import dag, setup, task, task_group, teardown
<ipython-input-1-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.dag` attribute is deprecated. Please use `'airflow.sdk.dag'`.
<ipython-input-1-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.setup` attribute is deprecated. Please use `'airflow.sdk.setup'`.
<ipython-input-1-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.task` attribute is deprecated. Please use `'airflow.sdk.task'`.
<ipython-input-1-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.task_group` attribute is deprecated. Please use `'airflow.sdk.task_group'`.
<ipython-input-1-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.teardown` attribute is deprecated. Please use `'airflow.sdk.teardown'`.

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@kaxil kaxil requested a review from ashb as a code owner July 22, 2025 10:51
@amoghrajesh
Copy link
Contributor

Since we now use those from Task SDK

```
In [2]: from airflow.decorators import dag, setup, task, task_group, teardown
<ipython-input-2-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.dag` attribute is deprecated. Please use `'airflow.sdk.definitions.decorators.dag'`.
<ipython-input-2-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.setup` attribute is deprecated. Please use `'airflow.sdk.definitions.decorators.setup'`.
<ipython-input-2-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.task` attribute is deprecated. Please use `'airflow.sdk.definitions.decorators.task'`.
<ipython-input-2-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.task_group` attribute is deprecated. Please use `'airflow.sdk.definitions.decorators.task_group'`.
<ipython-input-2-d417cb4444b8>:1 DeprecationWarning: The `airflow.decorators.teardown` attribute is deprecated. Please use `'airflow.sdk.definitions.decorators.teardown'`.

```
@kaxil kaxil force-pushed the depreacte-core-decorators branch from 950cf3a to 455802b Compare July 22, 2025 22:45
@kaxil kaxil requested a review from bolkedebruin as a code owner July 22, 2025 22:45
@kaxil kaxil force-pushed the depreacte-core-decorators branch from 455802b to a295494 Compare July 22, 2025 22:54
@kaxil kaxil merged commit 3f6d78c into apache:main Jul 23, 2025
85 checks passed
@kaxil kaxil deleted the depreacte-core-decorators branch July 23, 2025 09:54
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.

2 participants