Skip to content

Commit b658dae

Browse files
committed
Do not create RCT entry at EOR, update only SOR version
1 parent 5defaad commit b658dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Detectors/GRP/workflows/src/create-grp-ecs.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int createGRPECSObject(const std::string& dataPeriod,
134134
} else {
135135
LOGP(alarm, "Upload to {}/{} with validity {}:{} for SOR:{}/EOR:{} FAILED, returned with code {}", ccdbServer, objPath, tstart, tendVal, tstart, tend, retValGLO);
136136
}
137-
if (runType == GRPECSObject::RunType::PHYSICS || runType == GRPECSObject::RunType::COSMICS) { // also create the RCT/Info/RunInformation entry in case the run type is PHYSICS, to be finalized at EOR
137+
if ((runType == GRPECSObject::RunType::PHYSICS || runType == GRPECSObject::RunType::COSMICS) && tstart >= tend) { // also create the RCT/Info/RunInformation entry in case the run type is PHYSICS, to be finalized at EOR
138138
char tempChar{};
139139
std::map<std::string, std::string> mdRCT;
140140
mdRCT["SOR"] = std::to_string(tstart);

0 commit comments

Comments
 (0)