You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The Parallel Wrapper stage is a stage wrapper that allows you to parallelize the execution of multiple stages. The stages specified inside this wrapper will be executed at the same time, in parallel. 

Take into account, all stages specified inside this wrapper will receive the same intermediate and final, and there will be no communication between each other


ParallelWrapperStage Properties

PropertyDescriptionDefaultTypeRequired
typeStage class name-stringYes
enableEnable stage for executiontruebooleanNo
nameName for this specific stage"parallel"stringNo
save_to_intermediateIf true, the result of the stage will be stored in the intermediate instead of the final sectionfalsebooleanNo
ui_onlySection specific for UI configuration that affects the process of the stageobjectNo
halt_on_exceptionIndicates if the pipeline should be interrupted in case of an exceptionfalsebooleanNo
stagesList of stages to parallelize-arrayYes
timeoutArgument in seconds to impose a limit on how long you're willing to wait for each task to complete-integerNo

Example Configuration

_parallel = ParallelWrapperStage(
    name='parallel',
    stages=[
        _search1,
        _search2
    ],
	timeout=30
)
  • No labels