-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] - Asset grouping [CON-295] (#8375)
* First pass at asset group docs * Updates * Running snapshot * Update placeholder image * Replace placeholder image * Review comments * Remove unused imports
- Loading branch information
1 parent
662f47a
commit 0889686
Showing
5 changed files
with
97 additions
and
0 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
Binary file added
BIN
+170 KB
docs/next/public/images/concepts/assets/asset-group-dependency-graph.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions
13
examples/docs_snippets/docs_snippets/concepts/assets/asset_group_argument.py
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,13 @@ | ||
# pylint: disable=redefined-outer-name | ||
|
||
from dagster import asset | ||
|
||
# start_example | ||
|
||
|
||
@asset(group_name="cereal_assets") | ||
def nabisco_cereals(): | ||
return [1, 2, 3] | ||
|
||
|
||
# end_example |
17 changes: 17 additions & 0 deletions
17
examples/docs_snippets/docs_snippets/concepts/assets/asset_group_module.py
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,17 @@ | ||
# isort: skip_file | ||
# pylint: disable= | ||
|
||
from dagster import ( | ||
load_assets_from_package_module, | ||
) | ||
|
||
# start_example | ||
|
||
import my_package.cereal as cereal | ||
|
||
cereal_assets = load_assets_from_package_module( | ||
cereal, | ||
group_name="cereal_assets", | ||
) | ||
|
||
# end_example |