I want to pass a list of `CustomType` via config. ...
# ask-community
d
I want to pass a list of
CustomType
via config. I tried annotating
CustomType
with
@usable_as_dagster_type
and get the same error message: Input <foo> in op 'myOp' is not connected to the output of a previous node and can not be loaded from configuration, making it impossible to execute. Possible solutions are: • add a dagster_type_loader for type <CustomType> • connect <foo> to the output of another node I am trying to set this from a sensor if that makes sense
o
hi @Daniel Mosesson do you mind sharing the config that you're generating in the sensor?
d
RunRequest(run_key='foo', run_config={'ops':{'myOps':{'config': {'foo': [<instance of CustomType>]}}}}
o
ah gotcha -- I believe it should be
{'ops':{'myOps':{'inputs': {'foo': [<instance of CustomType>]}}}}
(basically "config" -> "inputs")