ferrero-opentext/Python-Version/MARKDOWN_DOCS
nickviljoen e1f15ea632 Add A1 retry logic and orchestrator off-hours cadence
Feature 1: A1→A2 Empty Folder Retry Logic
- Track retry attempts (max 3) for campaigns with no master assets
- Mark campaigns as permanently failed after 3 attempts
- Stop processing and sending emails for permanently failed campaigns
- Two new email templates: retry notification and permanent failure
- Database migration adds 4 new columns to campaign_status table
- Comprehensive documentation in A1_RETRY_LOGIC.md

Feature 2: Orchestrator Off-Hours Cadence
- Add 30 minutes to all task intervals during off-hours
- Off-hours: 10 PM - 5 AM weekdays + all day Saturday/Sunday
- Tasks only run at minutes 0 and 30 during off-hours
- Configurable and easy to enable/disable
- Daily Report (7 PM) remains unchanged

Files changed:
- NEW: database/migrations/003_add_a1_retry_tracking.sql
- NEW: MARKDOWN_DOCS/A1_RETRY_LOGIC.md
- MODIFIED: scripts/shared/database.py (added 3 methods)
- MODIFIED: scripts/a1_to_a2_box_uploader.py (added retry logic)
- MODIFIED: scripts/shared/notifier.py (added 2 templates)
- MODIFIED: scripts/orchestrator-prod.py (added off-hours config)
- MODIFIED: RUN_ORCHESTRATOR.md (added off-hours docs)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-31 17:38:57 +02:00
..
A1_RETRY_LOGIC.md Add A1 retry logic and orchestrator off-hours cadence 2026-01-31 17:38:57 +02:00
A2_A3_CREATIVEX_INTEGRATION.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
CLAUDE.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
COMPLETE_WORKFLOW_GUIDE.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
CREATIVEX_DEPLOYMENT.md Add systemd service files for Prod Orchestrator and CreativeX Service 2025-12-01 16:09:26 -05:00
CREATIVEX_SUMMARY.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
CREATIVEX_VERSION_UPDATES.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
CUTOVER-TODOS.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
CUTOVER.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
DATABASE_BACKUP_GUIDE.md Add systemd services and timers for database backups 2025-12-01 22:36:18 -05:00
DATABASE_SCHEMA.md feat: Formalize and document prefix-based tracking IDs for master and regular files, and correct a country code mapping. 2025-12-06 10:54:12 -05:00
DEPLOYMENT_GUIDE.md Update documentation with new services and deployment steps 2025-12-01 22:55:32 -05:00
ECOMMERCE_ALLOWED_FIELDS.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
EXTRACTION_GUIDE.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
HANDOFF_NEXT_SESSION.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
PYTHON_AUTOMATION_PLAN.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
QUESTIONS_FOR_DAM_IT_TEAM.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
UPLOAD_FROM_BOX_COMPLETE.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
UPLOAD_FROM_BOX_PHASE2_COMPLETE.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
UPLOAD_FROM_BOX_STATUS.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
UPLOAD_TROUBLESHOOTING.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
USER_GUIDE.md feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00