Replies: 5 comments 2 replies
-
|
No idea. And please avoid tagging people directly. People here are possibly helpi g if they feel like they can help and have some time to spare, not because they are tagged. And by tagging peop you limit your chances to get help from others. |
Beta Was this translation helpful? Give feedback.
-
|
@YakshaB have you solved issue? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hello, I saw the open forum and performed some tests, I hope this helps to understand. I checked exactly version 2.10.4 of airflow and with the parameter AIRFLOW__WEBSERVER__REQUIRE_CONFIRMATION_DAG_CHANGE, in fact, in /home where we list the DAGs the alert does not appear, however if you click on the DAG to open it (View the /grid), the alert appears. Another important point I noticed is that if we have an airflow.cfg file, the following parameter needs to be added to it: require_confirmation_dag_change = True. This implementation came from the following PR #38299, which makes it clear in the screenshots that it is developed only for the /grid pages of the DAG, and subsequently the following PR #42063, which was opened to correct a bug. For Airflow 3.X, this has already been fixed and appears directly in the DAG listing on the home page and in the DAG grid. An important point is that for Airflow 3.X, the variable changes because the WebServer switches to the API Server, resulting in the variable being AIRFLOW__API__REQUIRE_CONFIRMATION_DAG_CHANGE. I recommend updating to version 3.X if your environment is critical and requires the flag in the listing. Based on my research, there are no fixes for this in Airflow version 2.X, possibly due to the complex structure of (Flask + jQuery) making it difficult to implement without bugs. However, feel free to implement it if you wish. Note: The documentation might be confusing because it doesn't explicitly state that it's for grid screens, and we could consider highlighting this point, as the end user might assume it applies to all screens. However, note that in the PR, the author himself states the following: " |
Beta Was this translation helpful? Give feedback.
-
|
Possible solution in #67208 |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I have gone through doc https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#require-confirmation-dag-change and tried this
'''
require_confirmation_dag_change
New in version 2.9.0.
Require confirmation when changing a DAG in the web UI. This is to prevent accidental changes to a DAG that may be running on sensitive environments like production. When set to True, confirmation dialog will be shown when a user tries to Pause/Unpause, Trigger a DAG
Default
False
Environment Variable
AIRFLOW__WEBSERVER__REQUIRE_CONFIRMATION_DAG_CHANGE
'''
I have changed the REQUIRE_CONFIRMATION_DAG_CHANGE value to true and restarted and checked the UI, still Im able to enable/disable DAGs
How does it helps to me ? I checked below info, But when I enable/disable I don't see any thing
This feature is particularly useful in environments where accidental changes to DAGs could lead to service downtime, data processing issues, or job failures. When require_confirmation_dag_change is set to True, users must explicitly confirm their actions, adding an extra layer of protection.@potiuk can you please correct me If I wrong
Beta Was this translation helpful? Give feedback.
All reactions