Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kedro-airflow: Allow passing conf_source to the created DAG #672

Closed
ankatiyar opened this issue May 8, 2024 · 2 comments · Fixed by #712
Closed

kedro-airflow: Allow passing conf_source to the created DAG #672

ankatiyar opened this issue May 8, 2024 · 2 comments · Fixed by #712
Assignees
Labels

Comments

@ankatiyar
Copy link
Contributor

Description

Add --conf-source flag to kedro airflow create which will pass this on to the Jinja template used to generate the DAGs airflow_dag_template.j2

Context

To run a Kedro project as a DAG on airflow currently -

Additionally,

  • KedroSession.create() now allows passing conf_source path
  • kedro package creates a .whl file for the project pipelines etc and a .tar.gz file for the conf/ folder of the project which can be saved elsewhere

Possible Implementation

  • Add --conf-source to the CLI command which passes this info the Jinja template airflow_dag_template.j2

Possible Alternatives

(Optional) Describe any alternative solutions or features you've considered.

@astrojuanlu
Copy link
Member

xref kedro-org/kedro#770 (comment)

@astrojuanlu
Copy link
Member

@DimedS: "This change would be quite useful to deploy Kedro to some cloud Airflow because it's sometimes impossible to put configuration in the working directory" (paraphrasing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants