Skip to content

Commit

Permalink
QC-1178 window length should be infinite if moving windows are not us…
Browse files Browse the repository at this point in the history
…ed (#2302)

This is an optimization to avoid having QC tasks on grid publish objects often than needed, i.e. when they don't use moving windows, it's enough to publish them at end of stream.
  • Loading branch information
knopers8 authored May 27, 2024
1 parent aa6c64c commit 0d9ceee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Framework/src/TaskRunner.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ void TaskRunner::init(InitContext& iCtx)

// setup timekeeping
mDeploymentMode = DefaultsHelpers::deploymentMode();
mTimekeeper = TimekeeperFactory::create(mDeploymentMode, mTaskConfig.cycleDurations.back().first * 1000);
auto windowLengthMs = mTaskConfig.movingWindows.empty() ? 0 : (mTaskConfig.cycleDurations.back().first * 1000);
mTimekeeper = TimekeeperFactory::create(mDeploymentMode, windowLengthMs);
mTimekeeper->setCCDBOrbitsPerTFAccessor([]() {
// getNHBFPerTF() returns 128 if it does not know, which can be very misleading.
// instead we use 0, which will trigger another try when processing another timeslice.
Expand Down

0 comments on commit 0d9ceee

Please sign in to comment.