Last active
August 9, 2023 16:17
-
-
Save slopp/380b3546ab5898b3b9a520e7b72916fa to your computer and use it in GitHub Desktop.
example_of_observable_assets.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
@observable_source_asset( | |
auto_observe_interval_minutes=24*60 | |
) | |
def daily_data(): | |
return DataVersion(str(today())) | |
@observable_source_asset( | |
auto_observe_interval_minutes=10 | |
) | |
def live_data(): | |
return DataVersion(str(now())) | |
@asset( | |
deps=[daily_data, live_data], | |
auto_materialize_policy=AutoMaterializePolicy.eager() | |
) | |
def downstream(): | |
return | |
@asset( | |
deps=[downstream], | |
auto_materialize_policy=AutoMaterializePolicy.eager() | |
) | |
def downstream_downstream(): | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment