SIENTIAPDE-1312
Update Redis and CoreScouter to incorporate 'fill_missing_tags' parameter in data processing. Adjusted related tests to ensure proper handling of missing tags, enhancing overall functionality and consistency across workflows.
This commit is contained in:
@@ -220,7 +220,6 @@ class Redis(RedisBase):
|
||||
data_hold = {tag: content for tag, content in data_hold.items() if tag in tags}
|
||||
self.debug(f'Data hold after removing removed tags: {data_hold}', metadata=metadata)
|
||||
|
||||
|
||||
to_register_metrics = []
|
||||
for _, row in data.iterrows():
|
||||
value = row['value']
|
||||
@@ -229,7 +228,7 @@ class Redis(RedisBase):
|
||||
to_register_metrics.append((row['name'], value))
|
||||
|
||||
if fill_missing_tags:
|
||||
self.debug("Filling missing tags in data package", metadata=metadata)
|
||||
self.debug('Filling missing tags in data package', metadata=metadata)
|
||||
missing_tags = [tag for tag in tags if tag not in list(data_hold.keys())]
|
||||
|
||||
for tag in missing_tags:
|
||||
|
||||
@@ -93,7 +93,7 @@ class CoreScouter:
|
||||
'model_id': input_data['model_id'],
|
||||
'model_tags': input_data['model_tags'],
|
||||
'retention_time': input_data['retention_time'],
|
||||
'fill_missing_tags': input_data.get['fill_missing_tags']
|
||||
'fill_missing_tags': input_data['fill_missing_tags'],
|
||||
},
|
||||
retry_policy=retry_policy,
|
||||
start_to_close_timeout=timedelta(seconds=60),
|
||||
|
||||
Reference in New Issue
Block a user