Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Jul 4, 2025

Some defaults weren't being taken from configuration -- this is now fixed.

Simple Test to ensure back-compat works:

In [1]: from airflow.models.abstractoperator import AbstractOperator
<ipython-input-1-1a7685527e0f>:1 DeprecationWarning: The `airflow.models.abstractoperator.AbstractOperator` class is deprecated. Please use `'airflow.sdk.definitions._internal.abstractoperator.AbstractOperator'`.

In [2]: from airflow.models.abstractoperator import DEFAULT_QUEUE
<ipython-input-2-f543b59082e8>:1 DeprecationWarning: The `airflow.models.abstractoperator.DEFAULT_QUEUE` class is deprecated. Please use `'airflow.sdk.definitions._internal.abstractoperator.DEFAULT_QUEUE'`.

In [3]: from airflow.models.abstractoperator import DEFAULT_OWNER, DEFAULT_TASK_EXECUTION_TIMEOUT, TaskStateChangeCallback, NotMapped
<ipython-input-3-59defa9c8ac0>:1 DeprecationWarning: The `airflow.models.abstractoperator.DEFAULT_OWNER` class is deprecated. Please use `'airflow.sdk.definitions._internal.abstractoperator.DEFAULT_OWNER'`.
<ipython-input-3-59defa9c8ac0>:1 DeprecationWarning: The `airflow.models.abstractoperator.DEFAULT_TASK_EXECUTION_TIMEOUT` class is deprecated. Please use `'airflow.sdk.definitions._internal.abstractoperator.DEFAULT_TASK_EXECUTION_TIMEOUT'`.
<ipython-input-3-59defa9c8ac0>:1 DeprecationWarning: The `airflow.models.abstractoperator.TaskStateChangeCallback` class is deprecated. Please use `'airflow.sdk.definitions._internal.abstractoperator.TaskStateChangeCallback'`.
<ipython-input-3-59defa9c8ac0>:1 DeprecationWarning: The `airflow.models.abstractoperator.NotMapped` class is deprecated. Please use `'airflow.sdk.definitions._internal.abstractoperator.NotMapped'`.

In [4]: DEFAULT_QUEUE
Out[4]: 'default'

^ 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 added this to the Airflow 3.0.4 milestone Jul 4, 2025
@boring-cyborg boring-cyborg bot added area:providers area:task-sdk provider:edge Edge Executor / Worker (AIP-69) / edge3 labels Jul 4, 2025
@kaxil kaxil added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Jul 4, 2025
Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

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

Looks like you are also missing

  • default_task_retry_delay
  • default_task_retries
  • default_task_weight_rule
  • default_queue

@kaxil
Copy link
Member Author

kaxil commented Jul 4, 2025

Looks like you are also missing

  • default_task_retry_delay
  • default_task_retries
  • default_task_weight_rule
  • default_queue

aah, yeah will fix them in this PR itself so it is all in one

@kaxil kaxil force-pushed the remove-abstract-operator branch 4 times, most recently from bb51a52 to 139c058 Compare July 4, 2025 16:00
Some defaults weren't being taken from configuration -- this is now fixed.
@kaxil kaxil force-pushed the remove-abstract-operator branch from 139c058 to dcedeff Compare July 4, 2025 17:12
@kaxil
Copy link
Member Author

kaxil commented Jul 4, 2025

Static checks fixed by #52887

@kaxil kaxil merged commit 04d2d3b into apache:main Jul 4, 2025
72 of 73 checks passed
@kaxil kaxil deleted the remove-abstract-operator branch July 4, 2025 17:49
@github-actions
Copy link

github-actions bot commented Jul 4, 2025

Backport failed to create: v3-0-test. View the failure log Run details

Status Branch Result
v3-0-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 04d2d3b v3-0-test

This should apply the commit to the v3-0-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

amoghrajesh pushed a commit to astronomer/airflow that referenced this pull request Aug 11, 2025
Some defaults weren't being taken from configuration -- this is now fixed.

(cherry picked from commit 04d2d3b)
amoghrajesh pushed a commit to astronomer/airflow that referenced this pull request Aug 11, 2025
Some defaults weren't being taken from configuration -- this is now fixed.

(cherry picked from commit 04d2d3b)
kaxil added a commit that referenced this pull request Aug 11, 2025
Some defaults weren't being taken from configuration -- this is now fixed.

(cherry picked from commit 04d2d3b)
@kaxil kaxil modified the milestones: Airflow 3.0.4, Airflow 3.0.5 Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers area:task-sdk backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch provider:edge Edge Executor / Worker (AIP-69) / edge3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants