ZM6WYVL7JYY5JADLSZADG6TO45M77JF54HJ5RMLMLSHUPCMT2TFQC
try {
if (!WIFEXITED(status) || WEXITSTATUS(status) > 1) {
auto conn(dbPool.get());
pqxx::work txn(*conn);
txn.parameterized
("update Jobsets set errorMsg = $1, errorTime = $2")
(fmt("evaluation %s", statusToString(status)))
(time(0))
.exec();
txn.commit();
}
} catch (std::exception & e) {
printError("exception setting jobset error: %s", e.what());
}