Skip to content

How to write a schedule that launches a single run that fills a range of asset partitions? #14622

Answered by sryza
sryza asked this question in Q&A
Discussion options

You must be logged in to vote

You can accomplish this with a RunRequest that supplies the "dagster/asset_partition_range_start" and "dagster/asset_partition_range_end" tags:

@schedule(job=..., cron_schedule="@daily")
def my_schedule():
    ...
    return RunRequest(
        tags={
            "dagster/asset_partition_range_start": start_partition_key,
            "dagster/asset_partition_range_end": end_partition_key,
        }
    )

Replies: 3 comments 5 replies

Comment options

sryza
Jun 5, 2023
Maintainer Author

You must be logged in to vote
5 replies
@geoHeil
Comment options

@sryza
Comment options

sryza Jun 6, 2023
Maintainer Author

@PatriciaAyuso
Comment options

@ytoast
Comment options

@sryza
Comment options

sryza Aug 8, 2023
Maintainer Author

Answer selected by sryza
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: partitions Related to Partitions area: asset Related to Software-Defined Assets
6 participants