https://dagster.io/ logo
Title
o

Or Asher

12/26/2021, 12:14 PM
Hey, I was wondering if there is a way to set the executing image on a per job basis. Even better if this available at job execution time
d

daniel

12/26/2021, 10:18 PM
Hi Or - assuming you're using kubernetes we do have some support for this - you can apply a tag to the job and it will override the image to use.
@job(
  tags = {
    'dagster-k8s/config': {
      'container_config': {
        'image': 'foobar:latest'
      },
    },
  },
)
Take caution though- this is an experimental feature and it’s easy to reach confusing errors. All the images need to have identical versions of your job defined in them, and in the same location (could be a module, file, etc. depending on your workspace). We’ll also try to use the same python executable path in all images.
o

Or Asher

12/27/2021, 7:40 AM
Thanks, very helpful!
y

yuhan

06/22/2022, 4:12 AM
@Dagster Bot discussion How to set the executing image on a per job basis
d

Dagster Bot

06/22/2022, 4:12 AM
Question in the thread has been surfaced to GitHub Discussions for future discoverability: https://github.com/dagster-io/dagster/discussions/8547