How can I set a max_runtime for the jobs that AutomationCondition runs to timeout? #24232
Answered
by
garethbrickman
garethbrickman
asked this question in
Q&A
-
I'm using AutomationCondition to trigger runs for my assets. How can I set the maximum runtime in seconds for these runs to timeout? |
Beta Was this translation helpful? Give feedback.
Answered by
garethbrickman
Sep 4, 2024
Replies: 1 comment
-
You can do this by setting the dagster/max_runtime tag in the defs = Definitions(
...,
sensors=[
AutomationConditionSensorDefinition(
"name",
selection=AssetSelection.all(),
run_tags={"dagster/max_runtime": 60},
)
],
) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
garethbrickman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do this by setting the dagster/max_runtime tag in the
run_tags
parameter of your AutomationConditionSensorDefinition. Example: