Skip to content

Conversation

@ephraimbuddy
Copy link
Contributor

Add bundle.initialize() call before parsing DAGs in CLI commands to ensure
bundles are properly initialized. This fixes an issue where CLI commands
could not parse DAGs because serialized DAGs were required but bundles
were not initialized, preventing DAG runs from being created.

Closes:#53682

@ephraimbuddy ephraimbuddy force-pushed the fix-dag-test branch 3 times, most recently from 400b362 to 6be9f6a Compare July 24, 2025 15:02
@ephraimbuddy ephraimbuddy changed the title Initialize DAG bundles in CLI get_dag function Initialize DAG bundles and sync dags in CLI get_dag function Jul 25, 2025
@ephraimbuddy ephraimbuddy requested a review from kaxil July 25, 2025 07:32
Add bundle.initialize() call before parsing DAGs in CLI commands to ensure
bundles are properly initialized, then sync the dags to the DB. This fixes an issue where CLI commands
could not parse DAGs because serialized DAGs were required but bundles
were not initialized, and dags not synced to the DB, preventing DAG runs from being created.

Closes:apache#53682
@ephraimbuddy ephraimbuddy merged commit 7796cdc into apache:main Jul 25, 2025
57 checks passed
@ephraimbuddy ephraimbuddy deleted the fix-dag-test branch July 25, 2025 14:14
ephraimbuddy added a commit to astronomer/airflow that referenced this pull request Jul 28, 2025
ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 7, 2025
…e#53699)

* Initialize DAG bundles and sync dags in CLI `get_dag` function

Add bundle.initialize() call before parsing DAGs in CLI commands to ensure
bundles are properly initialized, then sync the dags to the DB. This fixes an issue where CLI commands
could not parse DAGs because serialized DAGs were required but bundles
were not initialized, and dags not synced to the DB, preventing DAG runs from being created.

Closes:apache#53682

* fixup! Initialize DAG bundles and sync dags in CLI `get_dag` function

* sync bundles outside the loop
fweilun pushed a commit to fweilun/airflow that referenced this pull request Aug 11, 2025
…e#53699)

* Initialize DAG bundles and sync dags in CLI `get_dag` function

Add bundle.initialize() call before parsing DAGs in CLI commands to ensure
bundles are properly initialized, then sync the dags to the DB. This fixes an issue where CLI commands
could not parse DAGs because serialized DAGs were required but bundles
were not initialized, and dags not synced to the DB, preventing DAG runs from being created.

Closes:apache#53682

* fixup! Initialize DAG bundles and sync dags in CLI `get_dag` function

* sync bundles outside the loop
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.

3 participants