-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support loading default_args from shared defaults.yml (#330)
closes: #297 Currently, DAG Factory provides two places to configure default_args: 1. At the top of the YML file. 2. In the DAG configuration YML. The second option overrides the first one. Post this PR, the user can also keep the default_args in the `defaults.yml` file. The configuration from `defaults.yml` will be applied to all DAG Factory DAG Sample `defaults.yml` ``` default_args: start_date: "2025-01-01" owner: "global_owner" depends_on_past: true ``` The precedence for default_args will be as follows, after this implementation: 1. At DAG configuration YML 2. At the top of the YML file 3. default.yml i.e At DAG configuration YML will take precedence.
- Loading branch information
1 parent
38555b1
commit fd685b2
Showing
4 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
default_args: | ||
start_date: "2025-01-01" | ||
owner: "global_owner" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
default_args: | ||
start_date: "2025-01-01" | ||
owner: "global_owner" | ||
depends_on_past: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters