Hi there,
Is there a way to turn the toggle button on or off through code? I want to initialize the state of that switch right during DAG creation. I couldn’t see any way for that in the docs. Please let me know.
Thanks in advance
Hi there,
Is there a way to turn the toggle button on or off through code? I want to initialize the state of that switch right during DAG creation. I couldn’t see any way for that in the docs. Please let me know.
Thanks in advance
Hi @aircolleague- there’s no reliable way to turn DAGs on/off programmatically at the moment because the Airflow REST API is still experimental, but there is an AIP (Airflow Improvement Proposal) to make the API production-grade and introduce a bunch of new features.
It would definitely be cool to expose the ability to turn DAGs on/off via the API!