Is it possible to dynamically set dagster/concurrency_key from partitions at run time?
#26540
Unanswered
chrishiste
asked this question in
Q&A
Replies: 2 comments 4 replies
-
|
Curious, did you find a way to address this since you first posted? I am also trying to figure this out and it seems like implementing the logic in Python is too disconnected from the rest of dagster but there aren't other ways of doing it with the tag/metadata system dynamically |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
I was in the same boat, but at least currently this is trivial to do with unique tags in the queued run coordinator. concurrency:
runs:
tag_concurrency_limits:
- key: 'partition/YOURDYNAMICPARITION'
value:
applyLimitPerUniqueValue: true
limit: 1I'm currently on dagster 1.12, but it appears this goes back at least to 1.10. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a job that runs against multiple Cloud regions, each backed by a separate data store. I want to enforce a concurrency limit such that, for each region, I never exceed 10 queries running at once in a specific
@op.However, I don’t want one region’s concurrency limit to affect another’s—each region should be governed by its own limit.
What I’m trying to achieve:
I’d like to dynamically set the
dagster/concurrency_keyfor each run based on a partition value.My partitions are dynamic (
dagster.DynamicPartitionsDefinition), and I can’t know or hardcode all the possibledagster/concurrency_keyvalues at definition time.Is there a supported way to achieve this behavior?
Beta Was this translation helpful? Give feedback.
All reactions