Airflow XCom for Beginners - All you have to know in 10 mins

Airflow XCom for Beginners - All you have to know in 10 mins

Data with Marc

3 года назад

44,572 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

QUANMIN FENG
QUANMIN FENG - 17.09.2023 17:38

Best xcom video I watched

Ответить
Anatoly S
Anatoly S - 02.07.2023 17:52

great tutorial and explanantion! thank you!

Ответить
Gerardo
Gerardo - 20.05.2023 16:49

Please don't read the underscore!!!! Just read it a "choose model" and not "choose underscore model"

Ответить
ХеллБой
ХеллБой - 27.03.2023 11:07

thank you!
as it gets very often, some detail is missed by me in order to use new functionality and that detail was ti

thanks for explaining!

Ответить
Roku
Roku - 25.12.2022 02:37

Nice video but is there a way to do it between 2 DockerOperator? And if not with the DockerOperator creating some kind of CustomDockerOperator to make it able to do it?

Ответить
Андрей Резниченко
Андрей Резниченко - 22.11.2022 14:27

Hi all! Please suggest how to implement the following scenario:

Have a dag with sshoperator that executes shell script. Shell script returns different return codes. How to analyze which return code is received??

Ответить
Lưu Quang Huy
Lưu Quang Huy - 26.10.2022 08:33

Thank u for your sharing, keep it up because u doing that right clearly and easy to understand. Love from Viet Nam

Ответить
Wa Ode Zalmawati
Wa Ode Zalmawati - 23.09.2022 04:09

Whats a clearly explanation! Thankyou so much!
Love from Indonesia!❤‍🔥

Ответить
Yunus Emrah Uluçay
Yunus Emrah Uluçay - 26.08.2022 16:47

Thank you so much. It was really quick and clear.

Ответить
wl l
wl l - 19.08.2022 05:51

useful!

Ответить
shantanu bugadi
shantanu bugadi - 11.08.2022 01:47

Very well explained...! Very awesome...! I am just enjoying the series

Ответить
Guolun Li
Guolun Li - 09.07.2022 17:11

Thank you so much! By following your videos closely I not only avoided bugs but also learned in detail how to set up an airflow pipeline!

Ответить
thisaccountisfake
thisaccountisfake - 04.07.2022 09:37

How to access xcom in subdag from parent dag?

Ответить
Victor Telles
Victor Telles - 10.06.2022 17:29

Amazing tutorial as always. Love yout channel.

Ответить
Bharath Thati
Bharath Thati - 08.06.2022 00:36

can we pass xcom as params in redshiftsqloperator?

Ответить
Ken Bailey
Ken Bailey - 30.03.2022 01:36

Excellent thank you

Ответить
Antonio SALDIVAR
Antonio SALDIVAR - 11.03.2022 03:29

I have the same xcom key from same task and it does not get replace or overwrite, instead it creates other xcom record with same key and task id

Ответить
RAMJAN RAEEN
RAMJAN RAEEN - 04.03.2022 17:59

Hi Marc, how to cross communication data (data sharing) between master_dag and child_dag(this is triggered by master dag)?

Ответить
Yerkhan Kabyl
Yerkhan Kabyl - 21.02.2022 13:42

Does someone have the same issue like me? I got 3 “None” -> [None, None, None]

Ответить
Gustavo Costa
Gustavo Costa - 12.01.2022 14:20

Thanks for all your videos, Marc. Brilliant content, very straightfoward!

Ответить
Drak Dragon
Drak Dragon - 13.12.2021 06:23

Sir, I tried to do the needful to do good and nice Airflow in the XCom, but my hit chance was still saying 99% chance of to becoming the hit sir, but it still missed most of the time. Sir I do believe you should do the needful by improving the Airflow by using the Minecraft Mushroom Soup Windtunnel.

Ответить
Алексей Николаев
Алексей Николаев - 14.10.2021 01:00

Thank you! I spent a few hours trying to figure out how it works, but your tutorial did it in 10 minutes

Ответить
kipodiha
kipodiha - 10.10.2021 13:20

Very useful video! after reading airflow documentation and example for me this XCOM was still not clear :( Now I m ok! Thanks a lot!!!

Ответить
POWDER COOKS
POWDER COOKS - 26.08.2021 13:04

hi, thank for the video
could you answer the question?
what happens with xcoms after pulling it from metastore? whether they stay there or delete? and if they stay there after pulling then for how long?

Ответить
Big Kong Energy
Big Kong Energy - 26.08.2021 04:20

Commander, the aliens continue to make progress on the Avatar Project. If we're going to slow them, we need to move fast.

Ответить
Jose Miguel Manzanares Chirinos
Jose Miguel Manzanares Chirinos - 16.07.2021 18:42

Pretty enlightening!
Thank you very much!

Ответить
Guy Fridman
Guy Fridman - 06.07.2021 17:05

Thank you marc, I did the course in udemy and it's very recommended

Ответить
B M
B M - 30.06.2021 17:33

The three people who disliked this video are nifi fans

Ответить
Дмитрий Матвиенко
Дмитрий Матвиенко - 30.06.2021 16:34

thank you for clear explanation

Ответить
Padegal Saigiriraj
Padegal Saigiriraj - 10.06.2021 17:12

Thanks, Marc. Great info
Can You Please Confirm This
I have Two Tasks in DAG1
Task1 - Normal Function Which does some process
Task2 - TriggerDagRunOperator (Trigger DAG2)
Can I Use the return value/XCom of task1 in Task2 and use this value in DAG2?
Thanks

Ответить
Prashant Joshi
Prashant Joshi - 12.04.2021 12:00

add provide_context = True in task which uses ti in older version of airflow

Ответить
P
P - 10.01.2021 16:23

Hi Marc,

I have a question with regards of using xcom in subdags. How would you approach this? I tried e.g. adding it as a parameter in my subdag using Jinja template (see below), but it causes the following error (ValueError: unknown url type: "'").

The goal is to extract the xcom created by extract_all_bag_links() (stored in key='links'), in my created subdag function process_all_municipalities_subdag().

Just to give some more context, we are still currently using airflow 10.8, we are going to change in a few months (I saw the vid about the tasks instead of the subdags haha!)

#################### CODE ####################

# Extracts all the links to each municipality bag data
extract_bag_links = PythonOperator(
task_id='extract_bag_links',
python_callable=extract_all_bag_links,
provide_context=True,
dag=dag,
)

process_all_municipalities = SubDagOperator(
task_id='process_all_municipalities',
subdag=process_all_municipalities_subdag(parent_dag_name=DAG_NAME,
child_dag_name='process_all_municipalities',
args=default_args,
links="'{{ ti.xcom_pull(task_ids='extract_bag_links', key='links') }}'"),
dag=dag,
)

extract_bag_links >> process_all_municipalities

Ответить
Sarit Kumar Si
Sarit Kumar Si - 06.01.2021 21:54

Thanks Marc. Great info for a beginner like me :)

Ответить
Sodiq Afolayan
Sodiq Afolayan - 05.01.2021 23:32

Thanks Marc as always

Ответить