[K8s] Setting image tag from UI #24006
Replies: 2 comments 4 replies
-
Hi @HynekBlaha - i just wanted to check what exactly doesn't work about the solution that was proposed here of using {"container_config": "image"} : #19970 (comment) You mentioned that that didn't work because it wouldn't get propagated to the executor - but the executor can also be configured in the UI right? You could do something like this:
Appreciate that setting both a tag and custom executor config is kind of complex though. One reason that we are hesitant to support this in a first-class way is that Dagster currently uses information from the code server to generate snapshots about the code that are then used during the run. So if the code server and the run are using different images that are out of sync, we can't actually guarantee that the run will always work. That may not be an issue in your specific case, but just explaining why we would be hesitant to make, say, a prominent link the UI that allows you to vary the image at runtime. |
Beta Was this translation helpful? Give feedback.
-
Label dagster/image fixed in: #24076 |
Beta Was this translation helpful? Give feedback.
-
Discussed in #19970
I would like to contribute by implementing the feature mentioned in step 3).
I believe this quality-of-life improvement is something that might be useful for other users as well.
Does it make sense to you, maintainers (@sryza)?
Originally posted by HynekBlaha February 22, 2024
Why do I want to do it?
I believe it would help my team process backfills in parallel on rapidly changing staging environment.
Details:
Possible solutions:
1. By default, job is executed with the image of current code location.
2. Hardcode image to job_tags
3. Set image from UI
Notes:
We tried other approaches, such as:
In my opinion, the solution 3) is a bug. If an image is provided as run tag from UI, it should be used.
Is there better approach that I overlooked?
Thank you for your hard work on Dagster. We love it.
Beta Was this translation helpful? Give feedback.
All reactions