From 16f28c4d635813b05bbe23df092d1b2015c16fc2 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Tue, 16 Sep 2025 07:52:21 -0300 Subject: [PATCH] SIENTIAPDE-1222 Update values.yaml and MLFlow logging for courier integration - Changed the image repository to 'sientia-module-courier' and updated the image tag to '0.0.1'. - Modified environment variables for GITHUB_BRANCH and MLFLOW_PASSWORD to reflect new configurations. - Enhanced MLFlow logging to include additional debug statements for raw response data and added a check for empty DataFrames. --- laborious/activities/mlflow.py | 5 +++++ values.yaml | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/laborious/activities/mlflow.py b/laborious/activities/mlflow.py index a3dd54a..f11a397 100644 --- a/laborious/activities/mlflow.py +++ b/laborious/activities/mlflow.py @@ -161,9 +161,14 @@ class MLFlow(BaseActivity): model_name, data, model_config ) + self.debug("Transform raw response data:", metadata) + self.debug(response_data, metadata) + if response_data['success']: response_dataframe = DataFrame(response_data['content']) + if len(response_dataframe) == 0: + return response_data try: response_dataframe = self.detect_and_parse_datetime_index( response_dataframe, metadata) diff --git a/values.yaml b/values.yaml index 716254a..b2ae84e 100644 --- a/values.yaml +++ b/values.yaml @@ -7,11 +7,11 @@ replicaCount: 1 # This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ image: - repository: aignosi.azurecr.io/sientia-module + repository: aignosi.azurecr.io/sientia-module-courier # This sets the pull policy for images. pullPolicy: Always # Overrides the image tag whose default is the chart appVersion. - tag: "0.4.5" + tag: "0.0.1" # 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: @@ -151,7 +151,7 @@ env: - name: GITHUB_REPO_URL value: "git@github.com:Aignosi/sientia-dataops-laborious_temporal.git" - name: GITHUB_BRANCH - value: "SIENTIAPDE-1182-ajustar-laborious-para-pegar-timestamp-da-resposta-do-mlflow" + value: SIENTIAPDE-1222-ajustar-a-library-para-fazer-o-download-do-courier - name: PYTHON_APP value: "laborious.worker.worker" @@ -178,7 +178,7 @@ env: - name: MLFLOW_USERNAME value: "aignosi" - name: MLFLOW_PASSWORD - value: "aignosi" + value: "1L0FP50j3ncp123" - name: OPC_ID value: "1"