SIENTIAPDE-1169

Update image tag to 0.4.0 in values.yaml, modify GITHUB_BRANCH for SIENTIAPDE-1169, and enhance Redis activity to handle model tags for improved data retention.
This commit is contained in:
vitor-aignosi
2025-08-14 16:15:20 -03:00
parent c6fca2a8c2
commit 9303158a9d
3 changed files with 9 additions and 2 deletions

View File

@@ -111,6 +111,7 @@ class Redis(RedisBase):
metadata=metadata metadata=metadata
) )
data = DataFrame(input_data['data']) data = DataFrame(input_data['data'])
model_tags = input_data['model_tags']
retention_time = input_data['retention_time'] retention_time = input_data['retention_time']
key = f"held_data_{input_data['workflow_name']}_{input_data['schedule_name']}" key = f"held_data_{input_data['workflow_name']}_{input_data['schedule_name']}"
@@ -138,6 +139,11 @@ class Redis(RedisBase):
try: try:
# Remove possibly removed tags
tags = list(model_tags.keys())
data_hold = {tag: content for tag,
content in data_hold.items() if tag in tags}
to_register_metrics = [] to_register_metrics = []
for _, row in data.iterrows(): for _, row in data.iterrows():
value = row['value'] value = row['value']

View File

@@ -65,6 +65,7 @@ class CoreScouter:
'workflow_name': input_data['workflow_name'], 'workflow_name': input_data['workflow_name'],
'data': grouped_data, 'data': grouped_data,
'model_id': input_data['model_id'], 'model_id': input_data['model_id'],
'model_tags': input_data['model_tags'],
'retention_time': input_data['retention_time'] 'retention_time': input_data['retention_time']
}, },
retry_policy=retry_policy, retry_policy=retry_policy,

View File

@@ -11,7 +11,7 @@ image:
# This sets the pull policy for images. # This sets the pull policy for images.
pullPolicy: Always pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "0.3.2" tag: "0.4.0"
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ # This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: imagePullSecrets:
@@ -143,7 +143,7 @@ env:
- name: GITHUB_REPO_URL - name: GITHUB_REPO_URL
value: "git@github.com:Aignosi/sientia-dataops-scouter_temporal.git" value: "git@github.com:Aignosi/sientia-dataops-scouter_temporal.git"
- name: GITHUB_BRANCH - name: GITHUB_BRANCH
value: "SIENTIAPDE-1174-mapear-e-implementar-metricas-a-serem-criadas" value: "SIENTIAPDE-1169-pensar-e-projetar-testes-de-breakdown-e-performance"
- name: PYTHON_APP - name: PYTHON_APP
value: "scouter.worker.worker" value: "scouter.worker.worker"