Pass external values to DAG

179 views
Skip to first unread message

Serega Sheypak

unread,
Apr 11, 2016, 8:50:58 AM4/11/16
to Airflow
Hi, I'm confused with "conf" and "adhoc" flags.

I have a dag:

What is the right way:
1. pass input_path, output_path just before starting DAG (through backfill CLI command?)
2. pass input_path, output_path to Backfilljob during test?

There are tests realted to -c (--conf) in Airflow code, but they aimed to failed, because provided value is not json. I would liek to see how does Airflow allow to configure DAG

Thanks!

Frank Wang

unread,
Apr 11, 2016, 4:13:20 PM4/11/16
to Airflow
I used --conf json value(key pair) with trigger_dag command to set my spark input/output path 

Serega Sheypak

unread,
Apr 15, 2016, 10:51:27 AM4/15/16
to Airflow
And and what is the right way to get access to that json inside DAG?

Frank Wang

unread,
Apr 21, 2016, 6:32:10 PM4/21/16
to Airflow

Serega Sheypak

unread,
Apr 22, 2016, 4:47:59 AM4/22/16
to Airflow
Thanks, I saw that, anyway it doesn't work if you you are not in UTC timezone :(
Reply all
Reply to author
Forward
0 new messages