uplsh580 commented on issue #61033:
URL: https://github.com/apache/airflow/issues/61033#issuecomment-3796410811

   **Update on investigation:**
   
   The failure specifically occurs when the connection is defined in the **Web 
UI (Metadata Database)**. 
   
   If I define the connection via an **Environment Variable**, the command 
works perfectly even with the `-B` flag.
   
   - **Case 1: Connection in Web UI (Database)**
     - `airflow dag-processor`: Success
     - `airflow dag-processor -B bundle1`: **Fail** (`AirflowNotFoundException`)
   - **Case 2: Connection via Env Var (`AIRFLOW_CONN_GITHUB__SAMPLE`)**
     - `airflow dag-processor`: Success
     - `airflow dag-processor -B bundle1`: **Success**
   
   This confirms that the `-B` flag prevents the `dag-processor` from properly 
initializing the database/Internal API access layer within the Task SDK context 
during bundle creation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to