Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit 37847aaf authored by Alessio Netti's avatar Alessio Netti
Browse files

Analytics: fixing TTL assignment for job operators

parent 63046b49
......@@ -126,6 +126,7 @@ void AnalyticsController::run() {
continue;
}
_halted = false;
int64_t realTTL = 0;
// Push output analytics sensors
for (auto &p : _analyticsPlugins) {
if (_doHalt) break;
......@@ -146,7 +147,13 @@ void AnalyticsController::run() {
}
_sensorCache->getSensorMap()[sid].updateBatchSize(op->getMinValues());
}
_dcdbStore->insertBatch(readings, _metadataStore->getTTL(s->getMqtt()));
// Dynamic sensors (e.g., job aggregator) may have a TTL defined even if they are
// not published in the metadatastore
realTTL = _metadataStore->getTTL(s->getMqtt());
if( realTTL < 0 && s->getMetadata() && s->getMetadata()->getTTL() ) {
realTTL = *(s->getMetadata()->getTTL()) / 1000000000;
}
_dcdbStore->insertBatch(readings, realTTL);
_readingCtr += readings.size();
}
op->releaseUnits();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment