Skip to content
Snippets Groups Projects
Commit fc5e6398 authored by Steven Murray's avatar Steven Murray
Browse files

Fixed Scheduler::deleteArchive hiding exceptions

parent 0c28e713
No related branches found
No related tags found
No related merge requests found
......@@ -204,17 +204,12 @@ void Scheduler::deleteArchive(const std::string &instanceName, const common::dat
// // then it is an error.
// m_catalogue.deleteArchiveFile(instanceName, request.archiveFileID);
//}
// We did delete the file from the queue. It hence might be absent from the catalogue.
// Errors are not fatal here (so we filter them out).
try {
utils::Timer t;
m_catalogue.deleteArchiveFile(instanceName, request.archiveFileID, lc);
auto catalogueTime = t.secs(cta::utils::Timer::resetCounter);
log::ScopedParamContainer spc(lc);
spc.add("catalogueTime", catalogueTime);
lc.log(log::INFO, "In Scheduler::deleteArchive(): success.");
} catch (exception::UserError &) {}
utils::Timer t;
m_catalogue.deleteArchiveFile(instanceName, request.archiveFileID, lc);
auto catalogueTime = t.secs(cta::utils::Timer::resetCounter);
log::ScopedParamContainer spc(lc);
spc.add("catalogueTime", catalogueTime);
lc.log(log::INFO, "In Scheduler::deleteArchive(): success.");
}
//------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment