tlpipe.pipeline.pipeline.DoNothing

class tlpipe.pipeline.pipeline.DoNothing(parameter_file_or_dict=None, feedback=2)[source]

Do nothing.

This task will actually do nothing and its next() is never called, since the pipeline never generates its input, ‘non_existent_input’. As this task method is missing its input, as specified by the ‘requires’ or ‘in’ keys, the pipeline will restart at the beginning of the tasks list once it get to this task. Once everything before DoNothing has been executed, the pipeline notices that there is no opertunity for ‘non_existent_input’ to be generated and forces DoNothing to proceed to finish(). This then unblocks its following tasks, allowing them to proceed normally.

This may be useful when devise non-trivial pipeline flow.

Attributes

cacheable Override to return True if caching results is implemented.
embarrassingly_parallelizable Override to return True if next() is trivially parallelizeable.
history History that will be added to the output file.
params_init
prefix
__init__(parameter_file_or_dict=None, feedback=2)[source]

Methods

finish()
next(input)
setup()
show_params() Show all parameters that can be set and their default values of this task.