Hello! I would like to ask if there is any way of ...
# ask-community
a
Hello! I would like to ask if there is any way of passing custom parameter to
assets
with
RunRequest
when running a job/materialising assets?
t
Hey! Yeah, you can use the Config system to pass run-level parameters in https://docs.dagster.io/concepts/configuration/config-schema#using-software-defined-assets Here's an example of how you'd pass those parameters into a RunRequest
Copy code
yield RunRequest(
            run_key=f"adhoc_request_{request[0]}_{request[1]}",
            run_config={
                "ops": {
                    "adhoc_request": {
                        "config": {
                            "filename": request[0],
                            **request_config
                        }
                    }
                }
            }
        )
a
Ok I see! Thank you so much I will look into it!