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:

  1. example_trigger_controller_dag
  2. example_trigger_target_dag
  3. example_xcom
  4. example_xcom_args
  5. example_xcom_args_with_operators
  6. tutorial
  7. tutorial_dag
  8. tutorial_objectstorage
  9. tutorial_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

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (6 by maintainers)

Most upvoted comments

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:

docker run -it --rm -p 8080:8080 -e AIRFLOW__CORE__LOAD_EXAMPLES="true" apache/airflow:3.0.2-python3.11 standalone

I did some light digging and found out that the example_bash_operator DAG was moved from example_dags in https://github.com/apache/airflow/pull/49978. In most places, references to it seem to be now replaced by example_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_operator as well. Likely not a huge deal but wouldn’t it also be clearer if the test files referenced an existing example DAG?