https://dagster.io/ logo
Title
d

David Robinson

12/06/2021, 7:44 PM
Hello. I have a newbie question about config after looking at this page: https://docs.dagster.io/concepts/configuration/config-schema It looks like there are several options to provide config: with the --config option for dagster and dagit entered into the dagit console with run_config (various ways to declare and pass) Is there a way to supply a config.yaml for a repository via the workspace.yaml like this?: load_from: - python_file: relative_path: sample2/dagstersample2.py working_directory: sample2 config: config.yaml
d

daniel

12/06/2021, 7:48 PM
Hey David - this isn't something we support in the workspace.yaml unfortunately. You could absolutely within your Python code load config from a file and apply it to the objects in your repository at definition time though, using the configured API: https://docs.dagster.io/concepts/configuration/configured#configured-api It does require writing some code that does that though.
d

David Robinson

12/06/2021, 7:49 PM
Thanks Daniel. Appreciate the info…I will looking into that idea.
:condagster: 1