Skip to content

Commit 61b288c

Browse files
committed
DPL: don't print INVALID runNumber error when running with ALICE_O2_FST=1
1 parent 7262c36 commit 61b288c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Framework/Core/src/ExternalFairMQDeviceProxy.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include "Framework/AlgorithmSpec.h"
1414
#include "Framework/DataProcessingHeader.h"
1515
#include "Framework/DataSpecUtils.h"
16+
#include "Framework/DataTakingContext.h"
17+
#include "Framework/DefaultsHelpers.h"
1618
#include "Framework/DeviceSpec.h"
1719
#include "Framework/ExternalFairMQDeviceProxy.h"
1820
#include "Framework/InitContext.h"
@@ -534,7 +536,7 @@ InjectorFunction dplModelAdaptor(std::vector<OutputSpec> const& filterSpecs, DPL
534536
timingInfo.runNumber = dh->runNumber;
535537
timingInfo.tfCounter = dh->tfCounter;
536538
LOG(debug) << msgidx << ": " << DataSpecUtils::describe(OutputSpec{dh->dataOrigin, dh->dataDescription, dh->subSpecification}) << " part " << dh->splitPayloadIndex << " of " << dh->splitPayloadParts << " payload " << parts.At(msgidx + 1)->GetSize();
537-
if (dh->runNumber == 0 || (dh->tfCounter == 0 && dh->dataDescription.as<std::string>() != "EOS") || (fmqRunNumber > 0 && fmqRunNumber != dh->runNumber)) {
539+
if (DefaultsHelpers::deploymentMode() != DeploymentMode::FST && (dh->runNumber == 0 || (dh->tfCounter == 0 && dh->dataDescription.as<std::string>() != "EOS") || (fmqRunNumber > 0 && fmqRunNumber != dh->runNumber))) {
538540
LOG(error) << "INVALID runNumber / tfCounter: runNumber " << dh->runNumber
539541
<< ", tfCounter " << dh->tfCounter << ", FMQ runNumber " << fmqRunNumber
540542
<< " for msgidx " << msgidx << ": " << DataSpecUtils::describe(OutputSpec{dh->dataOrigin, dh->dataDescription, dh->subSpecification}) << " part " << dh->splitPayloadIndex << " of " << dh->splitPayloadParts << " payload " << parts.At(msgidx + 1)->GetSize();

0 commit comments

Comments
 (0)