Skip to content

Move BaseNotifier to Task SDK#48008

Merged
uranusjr merged 1 commit intoapache:mainfrom
astronomer:move-notifier-to-sdk
Mar 26, 2025
Merged

Move BaseNotifier to Task SDK#48008
uranusjr merged 1 commit intoapache:mainfrom
astronomer:move-notifier-to-sdk

Conversation

@uranusjr
Copy link
Member

An entry is added to the compat provider for all providers to use.

For #45424.

@uranusjr uranusjr force-pushed the move-notifier-to-sdk branch 5 times, most recently from 34bde78 to 3326449 Compare March 25, 2025 07:43
@uranusjr uranusjr requested review from eladkal and removed request for jedcunningham March 25, 2025 07:45
@uranusjr uranusjr force-pushed the move-notifier-to-sdk branch 2 times, most recently from cfbf5aa to 082aa46 Compare March 25, 2025 08:55
@uranusjr uranusjr force-pushed the move-notifier-to-sdk branch from 0cfcd08 to 615c3ce Compare March 25, 2025 14:58
An entry is added to the compat provider for all providers to use.
@uranusjr uranusjr force-pushed the move-notifier-to-sdk branch from 615c3ce to 56db697 Compare March 25, 2025 17:56
@eladkal
Copy link
Contributor

eladkal commented Mar 25, 2025

We need also to set version for common.compat that is installed by default with Airflow 3 don't we?

airflow/hatch_build.py

Lines 54 to 62 in 243fe86

PRE_INSTALLED_PROVIDERS = [
"common.compat",
"common.io",
"common.sql",
"fab",
"smtp",
"sqlite",
"standard",
]

I'm not sure if we have the mechanism to set min provider version for core?

@uranusjr
Copy link
Member Author

Airflow Core does not need newest compat; it does not use BaseNotifier. This class is only used in providers (and user code). The class is actually invoked by a protocol (using __call__) so we don’t need to check if an object is of the class either, we only need to check if a thing is callable.

@uranusjr uranusjr merged commit 6b32358 into apache:main Mar 26, 2025
148 checks passed
@uranusjr uranusjr deleted the move-notifier-to-sdk branch March 26, 2025 05:53
pankajkoti pushed a commit to astronomer/airflow that referenced this pull request Mar 28, 2025
An entry is added to the compat provider for all providers to use.
shubham-pyc pushed a commit to shubham-pyc/airflow that referenced this pull request Apr 2, 2025
An entry is added to the compat provider for all providers to use.
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
An entry is added to the compat provider for all providers to use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments