SIENTIAPDE-1193

Update replica count in values.yaml to 1 and enhance timestamp handling in MongoDB activity by setting timezone to UTC for inserted_at field.
This commit is contained in:
vitor-aignosi
2025-08-22 15:30:47 -03:00
parent 39ba82b539
commit 54c3dd25e9
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ from temporalio import workflow, activity
with workflow.unsafe.imports_passed_through(): with workflow.unsafe.imports_passed_through():
from typing import Any from typing import Any
import traceback import traceback
from datetime import datetime from datetime import datetime, timezone
from pymongo import MongoClient from pymongo import MongoClient
from pandas import DataFrame from pandas import DataFrame
from sientia_do.notifications.handlers import CoreNotificationHandler as NotificationHandler from sientia_do.notifications.handlers import CoreNotificationHandler as NotificationHandler
@@ -120,8 +120,8 @@ class MongoDB(BaseActivity):
) )
for item in data: for item in data:
item['inserted_at'] = item['inserted_at'].strftime( item['inserted_at'] = item['inserted_at'].replace(
DATETIME_FORMAT_MS_WITH_TZ) tzinfo=timezone.utc).strftime(DATETIME_FORMAT_MS_WITH_TZ)
self.info( self.info(
f"Loaded {len(data)} documents from MongoDB", f"Loaded {len(data)} documents from MongoDB",

View File

@@ -3,7 +3,7 @@
# Declare variables to be passed into your templates. # Declare variables to be passed into your templates.
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ # This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
replicaCount: 3 replicaCount: 1
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ # This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image: image: