@hestia-earth/api 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -117,7 +117,7 @@ var includeBlankNodes = function (logs, log) {
|
|
|
117
117
|
}, logs);
|
|
118
118
|
};
|
|
119
119
|
var groupLog = function (group, _a) {
|
|
120
|
-
var logger = _a.logger, term = _a.term, model = _a.model, key = _a.key, should_run = _a.should_run, log = __rest(_a, ["logger", "term", "model", "key", "should_run"]);
|
|
120
|
+
var logger = _a.logger, term = _a.term, model = _a.model, key = _a.key, should_run = _a.should_run, run_required = _a.run_required, log = __rest(_a, ["logger", "term", "model", "key", "should_run", "run_required"]);
|
|
121
121
|
var isOrchestrator = logger.includes('orchestrator');
|
|
122
122
|
var modelKey = isOrchestrator ? model : key || model;
|
|
123
123
|
var isKey = !isOrchestrator && !!key;
|
|
@@ -128,6 +128,10 @@ var groupLog = function (group, _a) {
|
|
|
128
128
|
var shouldRun = should_run === 'True';
|
|
129
129
|
group[term][modelKey] = isOrchestrator ? __assign(__assign({}, group[term][modelKey]), { shouldRunOrchestrator: shouldRun }) : __assign(__assign(__assign({}, group[term][modelKey]), omitLogKeys(log)), { shouldRun: shouldRun });
|
|
130
130
|
}
|
|
131
|
+
else if (typeof run_required !== 'undefined') {
|
|
132
|
+
var runRequired = run_required === 'True';
|
|
133
|
+
group[term][modelKey] = __assign(__assign(__assign({}, group[term][modelKey]), (runRequired ? {} : omitLogKeys(log))), { runRequired: runRequired });
|
|
134
|
+
}
|
|
131
135
|
else if ('requirements' in log) {
|
|
132
136
|
var requirements = log.requirements, logData = __rest(log, ["requirements"]);
|
|
133
137
|
group[term][modelKey].requirements = __assign(__assign({}, (group[term][modelKey].requirements || {})), logData);
|