From 6f7d62293efa7dc77cc0633460532c3bfae9418e Mon Sep 17 00:00:00 2001 From: bsiggel Date: Sun, 8 Mar 2026 17:58:10 +0000 Subject: [PATCH] feat(espocrm): add logging method to EspoCRMAPI for improved message handling fix(calendar_sync): correct cron expression for calendar sync job --- services/espocrm.py | 5 +++++ steps/advoware_cal_sync/calendar_sync_cron_step.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/services/espocrm.py b/services/espocrm.py index 001d7f0..67ad788 100644 --- a/services/espocrm.py +++ b/services/espocrm.py @@ -67,6 +67,11 @@ class EspoCRMAPI: else: self.logger.warning("⚠️ Redis unavailable - caching disabled") + def _log(self, message: str, level: str = 'info') -> None: + """Delegate to IntegrationLogger with optional level""" + log_func = getattr(self.logger, level, self.logger.info) + log_func(message) + def _get_headers(self) -> Dict[str, str]: """Generate request headers with API key""" return { diff --git a/steps/advoware_cal_sync/calendar_sync_cron_step.py b/steps/advoware_cal_sync/calendar_sync_cron_step.py index 3561f8e..c2594ed 100644 --- a/steps/advoware_cal_sync/calendar_sync_cron_step.py +++ b/steps/advoware_cal_sync/calendar_sync_cron_step.py @@ -17,7 +17,7 @@ config = { 'description': 'Runs calendar sync automatically every 15 minutes', 'flows': ['advoware-calendar-sync'], 'triggers': [ - cron("0 */15 1o * * *") # Every 15 minutes at second 0 (6-field: sec min hour day month weekday) + cron("0 */15 * * * *") # Every 15 minutes at second 0 (6-field: sec min hour day month weekday) ], 'enqueues': ['calendar_sync_all'] }