Commit Graph

10 Commits

Author SHA1 Message Date
root
b18e770f12 refactor: extract common functions to utils
- Add get_redis_client() to calendar_sync_utils.py
- Add get_advoware_employees() to calendar_sync_utils.py
- Add set_employee_lock() and clear_employee_lock() to calendar_sync_utils.py
- Update all step files to use shared utility functions
- Remove duplicate code across calendar_sync_*.py files
2025-10-25 09:21:45 +00:00
root
9d40f47e19 Refaktorierung Calendar Sync: Event-driven Design, Fixes für mehrtägige Termine, Logging und Locking
- Refaktorierung zu event-driven Ansatz ohne PostgreSQL Hub
- Fixes für mehrtägige Termine: korrekte Verwendung von datumBis, Entfernung 24h-Limit
- Per-Employee Locking mit Redis
- Logging via context.logger für Motia Workbench
- Neue Schritte: calendar_sync_all_step.py, calendar_sync_cron_step.py
- Aktualisiertes README.md mit aktueller Architektur
- Workbench-Gruppierung: advoware-calendar-sync
2025-10-24 19:13:41 +00:00
root
2eb8330b1d Implement atomic locking in API and cron steps for per-employee parallel sync 2025-10-24 00:48:25 +00:00
root
f6bcbe664c Fix event handler signature to async def handler(event_data, context) 2025-10-24 00:38:12 +00:00
root
d18187f3aa Change event topic to calendar_sync_employee without dots to fix INVALID EMIT 2025-10-24 00:29:09 +00:00
root
9ca3191542 Add flows to API and cron steps to fix INVALID EMIT error 2025-10-24 00:22:51 +00:00
root
b70619ab2d Update API step to trigger sync for specific employee with kuerzel 2025-10-24 00:20:41 +00:00
root
3a1ed1ee55 Refactor calendar sync: move employee loop to cron step, parallel sync per employee 2025-10-23 23:57:51 +00:00
root
1de5bcd369 Pre-optimization commit: Calendar sync implementation with hub design 2025-10-23 08:29:46 +00:00
root
2f9203cac2 Add calendar sync step files: API, cron, and event handlers for bidirectional Advoware-Google Calendar sync 2025-10-22 23:37:28 +00:00