Skip to content

Commit

Permalink
Initialize stream workers before processing empty (End)Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Sep 21, 2022
1 parent e2a21d3 commit 291b1f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions FWCore/Framework/src/StreamSchedule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,12 @@ namespace edm {
ServiceRegistry::Operate guard(serviceToken);
Traits::preScheduleSignal(actReg_.get(), &streamContext_);

// Data dependencies need to be set up before marking empty
// (End)Paths complete in case something consumes the status of
// the empty (EndPath)
workerManager_.setupResolvers(ep);
workerManager_.setupOnDemandSystem(info);

HLTPathStatus hltPathStatus(hlt::Pass, 0);
for (int empty_trig_path : empty_trig_paths_) {
results_->at(empty_trig_path) = hltPathStatus;
Expand All @@ -912,9 +918,6 @@ namespace edm {
}
}

workerManager_.setupResolvers(ep);
workerManager_.setupOnDemandSystem(info);

++total_events_;

//use to give priorities on an error to ones from Paths
Expand Down

0 comments on commit 291b1f4

Please sign in to comment.