-
Notifications
You must be signed in to change notification settings - Fork 21
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
get_qa_checks duplicates #6494
Comments
The problem here is that we're adding I think we should not be adding |
Ah, no, I see the problem now - we're adding But if we do add I think the fundamental problem here is that we can't rely on the set of templates found when the DAG is defined being the same as those that are available when the DAG runs. It seems to me that, if we want to keep the behaviour of dynamically adding tasks for all QA check templates present, we need to do so during DAG execution rather than DAG definition. Perhaps we can do that using mapped tasks. Alternatively, maybe we can make this work by dropping the auto-detection of QA checks in the DAGs folder, and instead require specifying |
Could we just skip adding it if |
Describe the bug
Suppose we have the following file structure:
where 'my_dag.py' is a DAG definition file that calls
flowetl.util.get_qa_checks()
. If we mount 'dags_root/' to '/opt/airflow/dags/etl/' in a FlowETL container, importing the DAG fails with:On closer inspection,
template_paths
withinget_qa_checks()
evaluates to:The text was updated successfully, but these errors were encountered: