-
Notifications
You must be signed in to change notification settings - Fork 184
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
[Feature] load_yaml_dags should have recursive=False option #289
Comments
Hi @wearpants, that sounds reasonable, especially if recursive is the default. Do you think we also need an option to specify how deep to go when Since you indicated that you are willing to submit a PR, we can assign this to you if you'd like? cc @tatiana |
It's not possible to specify a depth limit with Don't know your policy on breaking backwards compatibility (as #290 would also do) - might be better to introduce new I'm not likely to have time for this until Q1 |
That's not a bad idea. We're going to release a 1.0 in Q1, so there is an opportunity if we wanted to break backwards compat. Will get feedback from the team, but that's a fair callout re being explicit. |
So @wearpants @cmarteepants and I agreed on the following:
|
Description
load_yaml_dags
by default loads files from all subdirectories of thedags_folder
- sometimes that's not what you want. An option to useglob
instead ofrglob
here would be helpfulUse case/motivation
My project structure is complex, and uses mulitple dag folders with yaml files, and the recursive behavior has been a source of bugs. I'd like to be able to disable it.
Related issues
#290, #291, #297
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: