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

Moody Edghaim

04/24/2023, 8:57 PM
Apologies if I've missed something, but I can't find any documentation regarding default values for job parameters? I know
<http://dagster.In|dagster.In>
can be used for ops, is there a job-counterpart? I've defined a job like such:
Copy code
@job(...)
def example_sync(    
    example_id: int,    
    example_name: str,    
    optional_input: Optional[bool] = False,
) -> None:
Dagit complains about a missing
root:inputs
entry in the launchpad, namely - the
optional_input
param - and won't launch unless I provide the value.
c

chris

04/24/2023, 10:25 PM
We don’t have a super easy way to do this - you can use
input_values
arg in the decorator but that will completely override the input value. You could also use config mapping to define a config schema that has a default value for that job input
m

Moody Edghaim

04/24/2023, 10:27 PM
Thanks for the suggestions!
3 Views