Skip to content

How can I set a max_runtime for the jobs that AutomationCondition runs to timeout? #24232

Discussion options

You must be logged in to vote

You can do this by setting the dagster/max_runtime tag in the run_tags parameter of your AutomationConditionSensorDefinition. Example:

defs = Definitions(
    ...,
    sensors=[
        AutomationConditionSensorDefinition(
            "­name",
            selection=AssetSelection.all(),
            run_tags={"dagster/max_runtime": 60},
        )
    ],
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by garethbrickman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: declarative-automation Related to Declarative Automation, AutomationConditions and Auto Materialization
1 participant