Skip to content

Commit 282b041

Browse files
authored
DPL: provide a --spawners <N> option (#5881)
Similar to --readers allows creating <N> spawners which work in a time-pipelined way.
1 parent 93b8e09 commit 282b041

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Framework/Core/src/WorkflowCustomizationHelpers.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ namespace o2::framework
3232
std::vector<ConfigParamSpec> WorkflowCustomizationHelpers::requiredWorkflowOptions()
3333
{
3434
return std::vector<ConfigParamSpec>{{ConfigParamSpec{"readers", VariantType::Int64, 1ll, {"number of parallel readers to use"}},
35+
ConfigParamSpec{"spawners", VariantType::Int64, 1ll, {"number of parallel spawners to use"}},
3536
ConfigParamSpec{"pipeline", VariantType::String, "", {"override default pipeline size"}},
3637
ConfigParamSpec{"clone", VariantType::String, "", {"clone processors from a template"}},
3738
ConfigParamSpec{"workflow-suffix", VariantType::String, "", {"suffix to add to all dataprocessors"}},

Framework/Core/src/WorkflowHelpers.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
409409
}
410410

411411
if (aodSpawner.outputs.empty() == false) {
412-
extraSpecs.push_back(aodSpawner);
412+
extraSpecs.push_back(timePipeline(aodSpawner, ctx.options().get<int64_t>("spawners")));
413413
}
414414

415415
if (indexBuilder.outputs.empty() == false) {

0 commit comments

Comments
 (0)