Airflow unpause dag programmatically?
问题 I have a dag that we'll deploy to multiple different airflow instances and in our airflow.cfg we have dags_are_paused_at_creation = True but for this specific dag we want it to be turned on without having to do so manually by clicking on the UI. Is there a way to do it programmatically? 回答1: airflow-rest-api-plugin plugin can also be used to programmatically pause tasks. Pauses a DAG Available in Airflow Version: 1.7.0 or greater GET - http://{HOST}:{PORT}/admin/rest_api/api?api=pause Query