1 #ifndef CondCore_OnlineDBOutputService_h 2 #define CondCore_OnlineDBOutputService_h 36 template <
typename PayloadType>
47 if (payloadId.empty()) {
51 auto w_lat = std::chrono::duration_cast<std::chrono::microseconds>(
t1 -
t0).
count();
52 logger().
logInfo() <<
"Update has taken " << w_lat <<
" microsecs.";
55 logger().
logInfo() <<
"Last lumisection processed after update: " << lastProcessed;
57 logger().
logInfo() <<
"Preloading lumisection " << targetTime;
61 logger().
logInfo() <<
"Iov for preloaded lumisection " << targetTime <<
" is " << usedIov.
since;
62 auto p_lat = std::chrono::duration_cast<std::chrono::microseconds>(
t3 -
t2).
count();
63 logger().
logInfo() <<
"Preload has taken " << p_lat <<
" microsecs.";
64 if (usedIov.
since < targetTime) {
65 logger().
logWarning() <<
"Found a late update for lumisection " << targetTime <<
"(found since " 66 << usedIov.
since <<
"). A revert is required.";
72 auto t_lat = std::chrono::duration_cast<std::chrono::microseconds>(t4 -
t0).
count();
73 logger().
logInfo() <<
"Total update time: " << t_lat <<
" microsecs.";
cond::Time_t getLastLumiFromOMS(const std::string &omsServiceUrl)
const Record & lookUpRecord(const std::string &recordName)
EchoedLogStream< edm::LogWarning > logWarning()
~OnlineDBOutputService() override
unsigned long long Time_t
Time_t lumiTime(unsigned int run, unsigned int lumiId)
std::string m_lastLumiFile
OnlineDBOutputService(const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR)
std::string m_preLoadConnectionString
cond::persistency::Logger & logger()
cond::Time_t getLatestLumiFromFile(const std::string &fileName)
size_t m_latencyInLumisections
std::string m_frontierKey
cond::Iov_t preLoadIov(const PoolDBOutputService::Record &record, cond::Time_t targetTime)
cond::Time_t writeIOVForNextLumisection(const PayloadType &payload, const std::string &recordName)
std::string m_omsServiceUrl
EchoedLogStream< edm::LogInfo > logInfo()
void eraseSinceTime(const std::string &payloadId, cond::Time_t sinceTime, const std::string &recordName)
cond::UnpackedTime unpack(cond::Time_t iValue)
cond::Time_t getLastLumiProcessed()