apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
37.06k stars 14.29k forks source link

DAG in tutorial doesn't exist #37097

Open danbachar opened 9 months ago

danbachar commented 9 months ago

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?

Code of Conduct

boring-cyborg[bot] commented 9 months ago

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

aritra24 commented 9 months ago

@danbachar if you're working on this let me assign this to you?

danbachar commented 9 months ago

Sure. PR is already out and published

eladkal commented 9 months ago

I was not able to reproduce it. All example dags are loaded fine for me.

@aritra24 were you able to reproduce?

aritra24 commented 9 months ago

@eladkal I haven't tried it out yet, will try it out in a bit.

danbachar commented 9 months ago

Do you have virtualenv installed?


From: Elad Kalif @.> Sent: Tuesday, January 30, 2024 7:18:54 PM To: apache/airflow @.> Cc: Dan Bachar @.>; Assign @.> Subject: Re: [apache/airflow] DAG in tutorial doesn't exist (Issue #37097)

I was not able to reproduce it. All example dags are loaded fine for me.

@aritra24https://github.com/aritra24 were you able to reproduce?

— Reply to this email directly, view it on GitHubhttps://github.com/apache/airflow/issues/37097#issuecomment-1917631022, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AECHNJE5DX7NK34JLXMOOXTYRE2QVAVCNFSM6AAAAABCROMDQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJXGYZTCMBSGI. You are receiving this because you were assigned.Message ID: @.***>

aritra24 commented 9 months ago

I tried replicating and I do see the example dags. Initially I saw only a subset of 7 dags, but on refresh I see all 51. @danbachar can you let us know if you're doing anything different? fyi @eladkal I wasn't able to repro it either.

Screenshot 2024-01-31 at 12 12 18 PM
jpborsi commented 9 months ago

I did an install in a clean py3.9 virtualenv and had the same issue, which was resolved by installing apache-airflow[virtualenv]

potiuk commented 9 months ago

Anyone here reporting it, willing to add a documentation update explaining that virtualenv should be installed for those? That would be a nice first contribution to explain it in the way that people who got mislead would contrbute for others who are in similar situation? Any PR that could improve sotuation for others would be really good contribution.

danbachar commented 9 months ago

I have already, PR is opened

On 14. Feb 2024, at 22:15, Jarek Potiuk @.***> wrote:



Anyone here reporting it, willing to add a documentation update explaining that virtualenv should be installed for those? That would be a nice first contribution to explain it in the way that people who got mislead would contrbute for others who are in similar situation? Any PR that could improve sotuation for others would be really good contribution.

— Reply to this email directly, view it on GitHubhttps://github.com/apache/airflow/issues/37097#issuecomment-1944615658, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AECHNJFL6NGFUMAPOSPMUWDYTUSQBAVCNFSM6AAAAABCROMDQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGYYTKNRVHA. You are receiving this because you were mentioned.Message ID: @.***>

potiuk commented 9 months ago

Can you point to it please?