https://dagster.io/ logo
Title
d

Daniel Gafni

12/21/2022, 2:35 PM
Should the config provided in Launchpad override
.configured
config? My resource:
@resource(
    config_schema={
        "host": Field(StringSource, default_value="localhost"),
        "db": int,
        "password": Field(StringSource, is_required=False),
    }
)
def redis_client(init_context: InitResourceContext) -> Redis:
    ...
The Launchpad config:
resources:
  redis_client:
    config:
      db: 1
I pass a "partially " configured (I realize it's actually fully configured) resource to my `Definitions`:
"redis_client": redis_client.configured({"host": {"env": "REDIS_HOST"}, "db": 0}),
After this the
db
value is always 0, while I would expect the Launchpad config to override the value provided from the code.
👀 1
:plus1: 1