-
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.
- Loading branch information
Showing
16 changed files
with
193 additions
and
47 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
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
+192 KB
...xt/public/images/concepts/partitions-schedules-sensors/partitions/launchpad.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+182 KB
...itions-schedules-sensors/partitions/materialized-partitioned-asset-activity.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+129 KB
...epts/partitions-schedules-sensors/partitions/materialized-partitioned-asset.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+129 KB
...c/images/concepts/partitions-schedules-sensors/partitions/partitioned-asset.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+210 KB
...lic/images/concepts/partitions-schedules-sensors/partitions/partitioned-job.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+181 KB
...es/concepts/partitions-schedules-sensors/partitions/rematerialize-partition.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions
40
docs/screenshot_capture/concepts/partitions-schedules-sensors/partitions.yaml
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,40 @@ | ||
- path: partitioned-asset.png | ||
defs_file: examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/partitioned_asset.py | ||
url: http://127.0.0.1:3000/instance/assets/my_daily_partitioned_asset?view=definition | ||
|
||
- path: rematerialize-partition.png | ||
defs_file: examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/partitioned_asset.py | ||
url: http://127.0.0.1:3000/instance/assets/my_daily_partitioned_asset?view=definition | ||
steps: | ||
- Click "Materialize" | ||
|
||
- path: materialized-partitioned-asset.png | ||
defs_file: examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/partitioned_asset.py | ||
url: http://127.0.0.1:3000/instance/assets/my_daily_partitioned_asset?view=definition | ||
steps: | ||
- Click "Materialize" | ||
- Launch a run | ||
- Wait for the run to complete | ||
- Refresh the page | ||
|
||
- path: materialized-partitioned-asset_activity.png | ||
defs_file: examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/partitioned_asset.py | ||
url: http://127.0.0.1:3000/instance/assets/my_daily_partitioned_asset?view=definition | ||
steps: | ||
- Click "Materialize" | ||
- Launch a run | ||
- Wait for the run to complete | ||
- Refresh the page | ||
- Navigate to the activity tag | ||
|
||
- path: partitioned-job.png | ||
defs_file: examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/partitioned_job.py | ||
url: http://127.0.0.1:3000/workspace/__repository__do_stuff_partitioned@partitioned_job.py/jobs/do_stuff_partitioned/partitions | ||
page_load_sleep: 5 | ||
|
||
|
||
- path: launchpad.png | ||
defs_file: examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/partitioned_job.py | ||
url: http://127.0.0.1:3000/workspace/__repository__do_stuff_partitioned@partitioned_job.py/jobs/do_stuff_partitioned/playground | ||
steps: | ||
- Select 2020-01-02 partition |
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
8 changes: 8 additions & 0 deletions
8
...es/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/partitioned_asset.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,8 @@ | ||
from dagster import DailyPartitionsDefinition, asset | ||
|
||
|
||
@asset(partitions_def=DailyPartitionsDefinition(start_date="2022-01-01")) | ||
def my_daily_partitioned_asset(context): | ||
context.log.info( | ||
f"Processing asset partition '{context.output_asset_partition_key()}'" | ||
) |
11 changes: 8 additions & 3 deletions
11
...ples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/partitioned_job.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
13 changes: 13 additions & 0 deletions
13
...nippets_tests/concepts_tests/partitions_schedules_sensors_tests/test_partitioned_asset.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 @@ | ||
from dagster import AssetGroup | ||
from docs_snippets.concepts.partitions_schedules_sensors.partitioned_asset import ( | ||
my_daily_partitioned_asset, | ||
) | ||
|
||
|
||
def test_partitioned_asset(): | ||
assert ( | ||
AssetGroup([my_daily_partitioned_asset]) | ||
.build_job("a") | ||
.execute_in_process(partition_key="2022-01-01") | ||
.success | ||
) |
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
5a85d2c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
dagster – ./docs/next
docs.dagster.io
dagster-elementl.vercel.app
dagster-git-master-elementl.vercel.app
new-docs.dagster.io
dagster.vercel.app