Airflow: Default default_args

Created on 4 Nov 2020  路  4Comments  路  Source: apache/airflow

I use for every single dag the same s3_bucket, email and start_date. It would be nice that those default_args won't have to be written explicitly in each dag file, but taken from the airflow.cfg file or default_args.cfg file or something like that.

feature

Most helpful comment

not tried, but I think you can create a default_args.py file along with your dags and write a DEFAULT_ARGS dict there and just import it in ur dags everytime?

All 4 comments

not tried, but I think you can create a default_args.py file along with your dags and write a DEFAULT_ARGS dict there and just import it in ur dags everytime?

Why not use cluster policy?

Why not use cluster policy?

Ok, I didn't know that. Closing the issue then, thank you. Although I think having more documentation with examples of what can be achieved with cluster policy would be very nice

@JavierLopezT would you like to add them? It's best when the documentation comes from users who are using a feature 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zacwellmer picture zacwellmer  路  4Comments

hagope picture hagope  路  4Comments

turbaszek picture turbaszek  路  4Comments

blackw1ng picture blackw1ng  路  3Comments

grbinho picture grbinho  路  3Comments