Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Framework/src/Bookkeeping.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ void Bookkeeping::init(const std::string& url)
}

try {
mClient = BkpClientFactory::create(url);
if (auto tokenEnv = std::getenv("QC_BKP_CLIENT_TOKEN"); tokenEnv != NULL) {
mClient = BkpClientFactory::create(url, tokenEnv);
} else {
mClient = BkpClientFactory::create(url);
}
} catch (std::runtime_error& error) {
ILOG(Warning, Support) << "Error connecting to Bookkeeping: " << error.what() << ENDM;
return;
Expand Down
2 changes: 1 addition & 1 deletion doc/Framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ Propagation can be enabled by adding the following key-value pair to Check/Aggre

Using it for Aggregators is discouraged, as the information on which exact Check failed is lost or at least obfuscated.

Also, make sure that the configuration file includes the Bookkeeping URL.
Also, make sure that the configuration file includes the Bookkeeping URL and there is an env var `QC_BKP_CLIENT_TOKEN` with authentication token for setups external to P2.

Check results are converted into Flags, which are documented in [O2/DataFormats/QualityControl](https://github.com/AliceO2Group/AliceO2/tree/dev/DataFormats/QualityControl).
Information about the object validity is preserved, which allows for time-based flagging of good/bad data.
Expand Down