The GitHub Actions job "Tests" on 
airflow.git/bugfix/connections-missing-in-dag-processor has succeeded.
Run started by GitHub user dheerajturaga (triggered by dheerajturaga).

Head commit for run:
218f394bf447ee974e5865c9a64b42b1e67848d8 / Dheeraj Turaga 
<[email protected]>
Fix GitHook connection retrieval in dag_processor by setting server context

  The dag_processor was unable to retrieve connections from the database,
  causing GitHook (and other hooks) to fail with:
    AirflowNotFoundException: The conn_id `<conn_id>` isn't defined

  Root cause: dag_processor was running in FALLBACK context, which only
  loads EnvironmentVariablesBackend, not MetastoreBackend. This meant
  connections stored in the database were inaccessible.

  The dag_processor is a server-side component that needs database access
  for connection retrieval, similar to the scheduler and API server.

  Fix: Set _AIRFLOW_PROCESS_CONTEXT=server in DagProcessorJobRunner._execute()
  to enable MetastoreBackend, matching the pattern already used in:
  - SchedulerJobRunner (scheduler_job_runner.py:1064)
  - API FastAPI server (api_fastapi/main.py:24)

  This ensures the dag_processor uses the correct secrets backend chain:
    EnvironmentVariablesBackend → MetastoreBackend (database access)

  Affects: DAG bundle processing with GitHook and any other hooks that
  rely on database-stored connections during DAG parsing.

Report URL: https://github.com/apache/airflow/actions/runs/18892855369

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to