Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Framework/Core/src/CommonServices.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -701,9 +701,16 @@ o2::framework::ServiceSpec
O2_SIGNPOST_ID_FROM_POINTER(cid, data_processor_context, &decongestion);
O2_SIGNPOST_EVENT_EMIT(data_processor_context, cid, "oldest_possible_timeslice", "Received oldest possible timeframe %" PRIu64 " from channel %d",
(uint64_t)oldestPossibleTimeslice, channel.value);
auto previousOldestPossibleInput = timesliceIndex.getOldestPossibleInput();
relayer.setOldestPossibleInput({oldestPossibleTimeslice}, channel);
timesliceIndex.updateOldestPossibleOutput(decongestion.nextEnumerationTimesliceRewinded);
auto oldestPossibleOutput = relayer.getOldestPossibleOutput();
// If the oldest possible input changed, we need to rescan all slots
// so that completion policies which depend on it (e.g.
// consumeWhenPastOldestPossibleTimeframe) get re-evaluated.
if (previousOldestPossibleInput.timeslice.value != timesliceIndex.getOldestPossibleInput().timeslice.value) {
timesliceIndex.rescan();
}

if (oldestPossibleOutput.timeslice.value == decongestion.lastTimeslice) {
O2_SIGNPOST_EVENT_EMIT(data_processor_context, cid, "oldest_possible_timeslice", "Synchronous: Not sending already sent value: %" PRIu64, (uint64_t)oldestPossibleOutput.timeslice.value);
Expand Down