Open nicolocin opened 4 years ago
@nicolocin - a workflow is a subclass of task, so an input spec is required for a workflow when created, but it can be a simple input spec of just names.
more importantly though the error should be more direct and caught a lot earlier in the init process.
Ok gotcha. Currently None is a valid type for input_spec in the workflow class, once I change that this shouldn't be an issue
so i can see how a workflow could have no input spec, let's say it generates, synthesizes data. so indeed, we should allow for this at some level. perhaps check examples of task with no input spec.
Ran into this when trying to debug #262. Not specifying
input_spec
returns aRecursionError
and makes it hard to check for undefined variables in a workflow. Shouldinput_spec
be required at initialization?Code
Output