https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Akira Chang

06/19/2023, 2:30 PM
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

Tim Castillo

06/20/2023, 10:29 PM
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

Akira Chang

06/22/2023, 8:25 AM
Ok I see! Thank you so much I will look into it!