The backend's /contracts/process endpoint fails to trigger the Airflow DAG because the backend container cannot reach airflow-apiserver by hostname.
Current behavior: curl -X POST http://localhost:8000/contracts/process returns 500 Internal Server Error with httpx.ConnectError: All connection attempts failed.
Workaround: Trigger the DAG directly via Airflow CLI:
docker compose -f infra/docker/docker-compose.yml exec
airflow-scheduler airflow dags trigger cba_pipeline
--conf '{"filenames": ["filename.pdf"]}'
Acceptance criteria:
POST /contracts/process successfully triggers the DAG and returns a dag_run_id
- Backend container can reach
http://airflow-apiserver:8080 by hostname
- Verify with the reachability check in the runbook
The backend's
/contracts/processendpoint fails to trigger the Airflow DAG because the backend container cannot reachairflow-apiserverby hostname.Current behavior:
curl -X POST http://localhost:8000/contracts/processreturns 500 Internal Server Error withhttpx.ConnectError: All connection attempts failed.Workaround: Trigger the DAG directly via Airflow CLI:
docker compose -f infra/docker/docker-compose.yml exec
airflow-scheduler airflow dags trigger cba_pipeline
--conf '{"filenames": ["filename.pdf"]}'
Acceptance criteria:
POST /contracts/processsuccessfully triggers the DAG and returns adag_run_idhttp://airflow-apiserver:8080by hostname