Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Jun 16, 2025

The MESSAGE_QUEUE_PROVIDERS array was defined in the __init__.py of the provider and it was pretty wrong because it was evaluated when the provider was imported - so it was impossible to import the base provider without initializing the arraym which caused circular import.

Fixes: #51770


^ 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.

@potiuk potiuk requested a review from vincbeck as a code owner June 16, 2025 09:09
@potiuk potiuk added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Jun 16, 2025
@potiuk potiuk modified the milestones: Airflow 2.11.1, Airflow 3.0.3 Jun 16, 2025
@potiuk potiuk removed the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Jun 16, 2025
@potiuk potiuk requested review from uranusjr and vikramkoka June 16, 2025 09:14
The MESSAGE_QUEUE_PROVIDERS array was defined in the `__init__.py` of
the provider and it was pretty wrong because it was evaluated when
the provider was imported - so it was impossible to import the
base provider without initializing the arraym which caused circular
import.

Fixes: apache#51770
@potiuk potiuk force-pushed the fix-sqs-queue-import branch from ab30f66 to fce3b2c Compare June 16, 2025 09:30
@potiuk potiuk merged commit bf973b6 into apache:main Jun 16, 2025
123 of 124 checks passed
@potiuk potiuk deleted the fix-sqs-queue-import branch June 16, 2025 12:55
RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Jun 21, 2025
…apache#51774)

The MESSAGE_QUEUE_PROVIDERS array was defined in the `__init__.py` of
the provider and it was pretty wrong because it was evaluated when
the provider was imported - so it was impossible to import the
base provider without initializing the arraym which caused circular
import.

Fixes: apache#51770
potiuk added a commit to potiuk/airflow that referenced this pull request Aug 5, 2025
The apache#51774 changed the important way how intialization is done,
it was causing circular imports in case it was imported directly.

This PR changes minimum version of common messaging for all providers
using it and generally for core airflow.
potiuk added a commit to potiuk/airflow that referenced this pull request Aug 6, 2025
The apache#51774 changed the important way how intialization is done,
it was causing circular imports in case it was imported directly.

This PR changes minimum version of common messaging for all providers
using it and generally for core airflow.
potiuk added a commit that referenced this pull request Aug 6, 2025
The #51774 changed the important way how intialization is done,
it was causing circular imports in case it was imported directly.

This PR changes minimum version of common messaging for all providers
using it and generally for core airflow.
potiuk added a commit to potiuk/airflow that referenced this pull request Aug 6, 2025
The apache#51774 changed the important way how intialization is done,
it was causing circular imports in case it was imported directly.

This PR changes minimum version of common messaging for all providers
using it and generally for core airflow.

(cherry picked from commit 9cc0717)
potiuk added a commit that referenced this pull request Aug 6, 2025
The #51774 changed the important way how intialization is done,
it was causing circular imports in case it was imported directly.

This PR changes minimum version of common messaging for all providers
using it and generally for core airflow.

(cherry picked from commit 9cc0717)
ashb pushed a commit that referenced this pull request Aug 6, 2025
The #51774 changed the important way how intialization is done,
it was causing circular imports in case it was imported directly.

This PR changes minimum version of common messaging for all providers
using it and generally for core airflow.

(cherry picked from commit 9cc0717)
ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 7, 2025
The apache#51774 changed the important way how intialization is done,
it was causing circular imports in case it was imported directly.

This PR changes minimum version of common messaging for all providers
using it and generally for core airflow.
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.

SqsMessageQueueProvider deprecation mechanism causes circular import

2 participants