https://dagster.io/ logo
Title
m

Max Rostron

04/13/2023, 4:28 PM
Hey - I think this is an obvious one. Is it possible to pass a custom parameter from the UI dashboard? How would I update the below to give the user the mandatory option to enter an int into the
user_specified_hash
field?
@op
def op_b(user_specified_hash: int):
    <http://log.info|log.info>(user_specified_hash)

@job(name="run_job_a")
def job_a(user_specified_hash: int):
    op_b(user_specified_hash)

# User on UI opens launch pad and updates the config for job_a by setting user_specified_hash to 123
# Job is run
# 123 is printed
t

Tim Castillo

04/13/2023, 5:38 PM
Hi! Yes! you're almost there. You're able to configure jobs to need configuration at runtime by following this page: https://docs.dagster.io/concepts/configuration/config-schema#specifying-runtime-configuration