QQ - I made a `@job` with an optional parameter wi...
# ask-community
j
QQ - I made a
@job
with an optional parameter with a default set to
None
, but the
dagit
UI expects this parameter to be specified (on version
0.14.5
- is this expected?
z
If this is for an op config schema I think Noneable should work
j
The job definition can't infer that? We're not using config schema types and we're just letting Dagster infer them.
z
are you using
Copy code
config_schema={'param': Optional[str]}
? Not sure if that works.
c
Is this optional parameter being specified via function parameters? A la
Copy code
@job
def the_job(x=None):
    ...
If so, right now the default value is being silently ignored. However, there's likely a path forward to getting this working as you would expect (the kwarg value being used as a default input value on the job), so going to file an issue here: https://github.com/dagster-io/dagster/issues/8658