shashbha14 opened a new pull request, #62022:
URL: https://github.com/apache/airflow/pull/62022
Closes #60616
## Summary
- Adds `POST /api/v2/dagBundles/{bundle_name}/refresh` endpoint
- Adds `DagBundleRefreshRequest` model to signal the DAG processor
- DAG processor consumes requests and force-refreshs the bundle
- Adds Alembic migration and tests
## What it does
Allows authorized clients to force-refresh a DAG bundle immediately via API,
without needing to restart the dag processor or wait for the polling interval.
This allows CI/CD pipelines and external systems to programmatically refresh
DAG bundles after deployment.
## Changes
- **`airflow-core/src/airflow/models/dagbundle.py`** - Added
`DagBundleRefreshRequest` model
-
**`airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_bundles.py`**
- Added endpoint
-
**`airflow-core/src/airflow/api_fastapi/core_api/routes/public/__init__.py`** -
Router registration
- **`airflow-core/src/airflow
--
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]