From 8d9381049aa30ff959c47c6dd923df8fd97a18e8 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Mon, 14 Jul 2025 17:01:50 -0300 Subject: [PATCH] SIENTIAPDE-1150 refactor: add debug logging for schedule comparison in formatters, enhancing traceability of updated_at timestamp checks --- orchestrator/activities/formatters.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orchestrator/activities/formatters.py b/orchestrator/activities/formatters.py index 1c021cc..ca1e1f1 100644 --- a/orchestrator/activities/formatters.py +++ b/orchestrator/activities/formatters.py @@ -164,11 +164,15 @@ class Formatters(BaseActivity): """ for schedule_name, schedule in schedules.items(): if schedule_name in current_schedules: + update_timestamp = schedule.get( 'updated_at', datetime.now().strftime(DEFAULT_DATE_FORMAT)) old_timestamp = current_schedules[schedule_name] + self.logger.debug( + f"Comparing schedule {schedule_name}:{update_timestamp} vs {old_timestamp}") + if update_timestamp > old_timestamp: to_update[namespace][schedule_name] = schedule else: