Skip to content

Commit

Permalink
Add missing Lifetime::Sporadic to QC inputs and outputs (#2038)
Browse files Browse the repository at this point in the history
...because DPL will require the Lifetime to match between inputs and outputs.
  • Loading branch information
knopers8 authored Nov 20, 2023
1 parent 6a6b601 commit e4e751b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Framework/src/InfrastructureGenerator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ framework::WorkflowSpec InfrastructureGenerator::generateLocalBatchInfrastructur
auto taskConfig = TaskRunnerFactory::extractConfig(infrastructureSpec.common, taskSpec, 0, 1);
workflow.emplace_back(TaskRunnerFactory::create(taskConfig));

fileSinkInputs.emplace_back(taskSpec.taskName, TaskRunner::createTaskDataOrigin(taskSpec.detectorName), TaskRunner::createTaskDataDescription(taskSpec.taskName));
fileSinkInputs.emplace_back(taskSpec.taskName, TaskRunner::createTaskDataOrigin(taskSpec.detectorName), TaskRunner::createTaskDataDescription(taskSpec.taskName), Lifetime::Sporadic);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Framework/test/testCheckWorkflow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Receiver : public framework::Task
{
Inputs inputs;
for (auto& checkName : mNames) {
inputs.push_back({ checkName, "QC", Check::createCheckDataDescription(checkName) });
inputs.push_back({ checkName, "QC", Check::createCheckDataDescription(checkName), Lifetime::Sporadic });
}
return inputs;
}
Expand Down
2 changes: 1 addition & 1 deletion Framework/test/testWorkflow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const&)
DataProcessorSpec receiver{
"receiver",
Inputs{
{ "checked-mo", "QC", Check::createCheckDataDescription(getFirstCheckName(qcConfigurationSource)), 0 } },
{ "checked-mo", "QC", Check::createCheckDataDescription(getFirstCheckName(qcConfigurationSource)), 0, Lifetime::Sporadic } },
Outputs{},
AlgorithmSpec{
[](ProcessingContext& pctx) {
Expand Down

0 comments on commit e4e751b

Please sign in to comment.