Controlling cpu and memory resources for auto-materializing assets without jobs #20995
Daniel-Vetter-Coverwhale
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Appologies if I'm misunderstanding, but The structure is the same as the one you pasted, I'm using it in k8s and everything works. |
Beta Was this translation helpful? Give feedback.
3 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.
-
EDIT:
It looks like you can set an executor at the user code location level - https://docs.dagster.io/deployment/executors#for-a-code-location - and that it should apply to each job and asset. So I just need to do that, with some conditional logic for if the asset or job is being executed locally. It might be nice for this to be a deployment level setting like the run launcher, so that you don't need to worry about it at the code location level, but for now I can just add this to all of my code locations.
With everything else being so nicely wrapped around assets at this point, it kind of stinks to have to write a separate job to get control of resources, especially for jobs that would only include that single asset.
It would be great if we could use the same op_tags structure, or even better some class or typed_dictionary specific to resources, directly in the asset decorator without needing to wrap the asset in a job.
I found an old slack thread about this, and I also found a new more recent slack thread with no activity at the moment in ask-community, but figured I would start a discussion here to increase visibility and help better keep track of the issue/feature request.
Current op_tags
Link to slack discussion from last year-ish - https://discuss.dagster.io/t/13163713/hey-there-i-am-trying-to-apply-a-tag-to-control-the-resource
Link to the more recent slack thread - https://dagster.slack.com/archives/C01U954MEER/p1709716088379659.
Beta Was this translation helpful? Give feedback.
All reactions