jonvet
02/01/2022, 3:35 PM@graph
, created a job via to_job
and imported the job in my repo.py
.
In order to run it as part of another graph I added ins
and out
to the @graph
decorator. That also runs fine. However since I added the ins
and out
to the @graph
I can’t launch dagit anymore. It’s the job described above that’s causing the problem. it either complains about Missing required config entry "inputs" at the root
or when I add inputs
to my yaml it complains that Error 1: Received unexpected config entry "inputs" at the root.
question: do I have to define 2 separate graphs in this case?alex
02/01/2022, 3:48 PMinputs
that are mapped on the graph intended to be optional? If yes, you can provide them with a default_value which I believe will resolve the issue. This can be done on the @op
decorated function like you would normally set default values for function inputs.jonvet
02/01/2022, 4:00 PMjonvet
02/01/2022, 4:01 PMalex
02/01/2022, 4:04 PMalex
02/01/2022, 4:05 PMalex
02/01/2022, 4:06 PMError 1: Received unexpected config entry “inputs” at the root.Is there more to this error? did you fill out the details below
inputs:
or did you just add the key?jonvet
02/01/2022, 4:08 PMinputs
. yes the error goes on
Error 1: Received unexpected config entry "inputs" at the root. Expected: "{ index_and_match: { config: {
and then what follows are all the other ops of the graph with their configs/inputsalex
02/01/2022, 4:16 PMjonvet
02/01/2022, 4:18 PMops
at the root. what’s the structure of the config when the graph takes inputs? graph
at the root?alex
02/01/2022, 4:19 PMdagit
should ideally display it in a way that makes it clearjonvet
02/01/2022, 4:21 PMalex
02/01/2022, 4:24 PMconfig=
? I would comment that out - get the right thing built in dagit then go back and add it corrected.alex
02/01/2022, 4:25 PMDagster Bot
02/01/2022, 4:25 PMjonvet
02/01/2022, 4:46 PMinputs
just have to be defined at the root level (same level as ops
). thanks!