airflow: DAG in tutorial doesn't exist
What do you see as an issue?
After installing Airflow and running it standalone with $ airflow standalone, the The Quick Start tutorial on the 4th step instructs the user to “Enable the example_bash_operator DAG in the home page”. This DAG does not exist, but these nine do:
example_trigger_controller_dagexample_trigger_target_dagexample_xcomexample_xcom_argsexample_xcom_args_with_operatorstutorialtutorial_dagtutorial_objectstoragetutorial_taskflow_api
Solving the problem
The user should be instructed to run an existing DAG. EDIT: this DAG is created when a user installed virtualenv. I amended the documentation in the following PR.
Anything else
Perhaps not all users immediately know what you’re talking about when you write DAG. I can only assume it’s Directed Acyclic Graphs, but normally when an acronym is used for the first time it should be introduced to reduce false assumptions.
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project’s Code of Conduct
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (6 by maintainers)
Sure (and also answering the original author) it’s because you need to enable them via configuration - they are disabled by default. Closing as invalid, but if any of people commenting would like come back to the documentation where they were looking for it and update it (“suggest a change on this page” button opens you a PR) to clarify that you need to do it. that would be awesome.
This for example works for me:
I did some light digging and found out that the
example_bash_operatorDAG was moved from example_dags in https://github.com/apache/airflow/pull/49978. In most places, references to it seem to be now replaced byexample_simplest_dag.@potiuk should the quick start guide be also changed to reference
example_simplest_dag? If so, I can take a stab at preparing a PR.Additionally, some test files (for example https://github.com/apache/airflow/blob/50f0fef52fc1087515ce6dcf91faa1b1debc8190/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_task_instances.py#L1991) seem to still reference
example_bash_operatoras well. Likely not a huge deal but wouldn’t it also be clearer if the test files referenced an existing example DAG?