SIENTIAPDE-1205

SIENTIAPDE-1205: Update GITHUB_BRANCH and standardize datetime handling in MongoDB activities

- Changed GITHUB_BRANCH in values.yaml from "main" to "SIENTIAPDE-1205-alterar-opc-para-assincrono".
- Updated datetime parsing in mongo_db.py to use DATETIME_FORMAT_MS_WITH_TZ for consistent timestamp handling.
This commit is contained in:
vitor-aignosi
2025-08-27 09:25:17 -03:00
parent e17df007ab
commit 93915841d6
2 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ with workflow.unsafe.imports_passed_through():
from sientia_do.notifications.handlers import CoreNotificationHandler as NotificationHandler
from sientia_do.notifications.models import NotificationLevel
from sientia_do.temporal.activities.base import BaseActivity
from sientia_do.temporal.constants import DATETIME_FORMAT_MS, now
from sientia_do.temporal.constants import DATETIME_FORMAT_MS_WITH_TZ, now
from datetime import datetime
@@ -442,7 +442,7 @@ class MongoDB(BaseActivity):
data_filter = {
**base_data_filter,
"timestamp": {
"$gt": datetime.strptime(last_data_timestamp, DATETIME_FORMAT_MS)
"$gt": datetime.strptime(last_data_timestamp, DATETIME_FORMAT_MS_WITH_TZ)
}
}
@@ -460,7 +460,7 @@ class MongoDB(BaseActivity):
for item in data:
item['timestamp'] = item['timestamp'].strftime(
DATETIME_FORMAT_MS)
DATETIME_FORMAT_MS_WITH_TZ)
self.info(
f"Loaded {len(data)} documents from MongoDB",

View File

@@ -151,7 +151,7 @@ env:
- name: GITHUB_REPO_URL
value: "git@github.com:Aignosi/sientia-dataops-orchestrator_temporal.git"
- name: GITHUB_BRANCH
value: "main"
value: "SIENTIAPDE-1205-alterar-opc-para-assincrono"
- name: PYTHON_APP
value: "orchestrator.worker.worker"