Skip to content

Automaterialize all static partitions #23219

Answered by OwenKephart
matthias-Q asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @matthias-Q, to answer the question of why this wasn't working for you, there is a default rate limit on all AutoMaterializePolicies which prevents them from materializing more than one partition of an asset per tick. This is configurable, but it is recommended to use AutomationCondition in place of AutoMaterializePolicy: #22811

This would look like:

from dagster import (
    AssetExecutionContext,
    AssetKey,
    AutomationCondition,
    StaticPartitionsDefinition,
    asset,
)

language_partitions = StaticPartitionsDefinition(
    ["GERMAN", "SPANISH", "FRENCH", "ENGLISH", "DUTCH", "HUNGARIAN", "ITALIAN", "POLISH"]
)


@asset
def upstream_asset1() -> None: ...


@asset(
    partiti…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by OwenKephart
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: declarative-automation Related to Declarative Automation, AutomationConditions and Auto Materialization
2 participants