add_task#
- caput.pipeline.Manager.add_task(task, task_spec={}, **kwargs)[source]#
Add a task instance to the pipeline.
- Parameters:
- task
Task A pipeline task instance.
- task_spec
dict include optional argument:
requires,in_,out: list or string The names of the task inputs and outputs.- **kwargsAny
Included for legacy purposes. Alternative method to provide
requires,in_, andoutarguments. These should only be provided iftask_specis not provided - a ValueError will be raised otherwise.
- task
- Raises:
CaputConfigErrorIf there was an error in the task configuration.