https://dagster.io/ logo
#ask-community
Title
# ask-community
c

Charlie Bini

01/13/2023, 4:14 PM
Can you bake execution configuration into a single asset? I have one that needs a little extra memory when it runs, but I'd like to keep it as part of the same job and schedule as the rest of its asset group. I can add this on the launchpad, but can I add it to the codebase somewhere?
Copy code
execution:
  config:
    resources:
      limits:
        memory: 1.0Gi
d

daniel

01/13/2023, 4:18 PM
Hey Charlie - is this using the k8s_job_executor?
c

Charlie Bini

01/13/2023, 4:18 PM
yeah
d

daniel

01/13/2023, 4:18 PM
the part where it says "you can also use the
dagster-k8s/config
tag on a Dagster op to control the Kubernetes configuration for that specific op"
c

Charlie Bini

01/13/2023, 4:20 PM
oh nice, so you just feed that to
op_tags
in the
@asset
decorator?
d

daniel

01/13/2023, 4:20 PM
that's right
c

Charlie Bini

01/13/2023, 4:20 PM
perfect!
so this definitely seems to work. should the tag be visible in the run though?
d

daniel

01/13/2023, 5:02 PM
it shouldn't because its a property of the individual step
We should probably show it on the description for the asset itself, but i don't think we do currently
c

Charlie Bini

01/13/2023, 5:03 PM
got it, makes sense
2 Views