Skip to content

Commit

Permalink
Add a checks only job to toys (#16638)
Browse files Browse the repository at this point in the history
## Summary & Motivation

## How I Tested These Changes
  • Loading branch information
johannkm authored Sep 20, 2023
1 parent 1465295 commit 87f9b90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python_modules/dagster-test/dagster_test/toys/asset_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
AssetCheckSpec,
AssetKey,
AssetOut,
AssetSelection,
DailyPartitionsDefinition,
In,
MetadataValue,
Nothing,
Output,
asset,
asset_check,
define_asset_job,
graph_asset,
multi_asset,
op,
Expand Down Expand Up @@ -410,6 +412,11 @@ def downstream_asset():
return 1


just_checks_job = define_asset_job(
name="just_checks_job", selection=AssetSelection.all_asset_checks()
)


def get_checks_and_assets():
return [
checked_asset,
Expand All @@ -430,4 +437,5 @@ def get_checks_and_assets():
asset_with_1000_checks,
many_tests_graph_asset,
many_tests_graph_multi_asset,
just_checks_job,
]

0 comments on commit 87f9b90

Please sign in to comment.