Skip to content
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

fix(freeshness_checks): changed build_freshness_checks_for_non_partit… #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions data_platform/assets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from dagster import asset, MaterializeResult, asset_check, AssetCheckResult, AssetsDefinition, build_freshness_checks_for_non_partitioned_assets
from datetime import timedelta

from dagster import asset, MaterializeResult, asset_check, AssetCheckResult, AssetsDefinition, build_last_update_freshness_checks
import pandas as pd
import data_platform.constants as constants
import random
Expand Down Expand Up @@ -430,9 +432,6 @@ def _asset_check() -> AssetCheckResult:
generate_asset_check(asset, "valid_type") for asset in data_products
]


freshness_checks = build_freshness_checks_for_non_partitioned_assets(
assets=data_products,
freshness_cron="0 0 * * *",
maximum_lag_minutes=60 * 24
freshness_checks = build_last_update_freshness_checks(
assets=data_products, lower_bound_delta=timedelta(hours=2)
)