https://dagster.io/ logo
#ask-community
Title
# ask-community
d

Daniel Mosesson

03/29/2022, 8:08 PM
How can I have a partitioned asset refer to a paritioned asset (in a non-data passing way)
s

sandy

03/29/2022, 9:52 PM
Here's an example:
Copy code
partitions_def = DailyPartitionsDefinition(start_date="2020-01-01")

@asset(partitions_def=partitions_def)
def asset1() -> None:
    ...

@asset(partitions_def=partitions_def, non_argument_deps=[AssetKey("asset1")])
def asset2() -> None:
    ...
Does this look like what you're looking for?
non_argument_deps
handles the non-data passing
d

Daniel Mosesson

03/30/2022, 9:24 AM
That worked, thank you