🎯 Funnels Processing
📖 Overview
The Funnels module handles funnel cloning operations, backup cleanup, and thumbnail generation.
Environment Flags:
QM_FUNNELS_CLONING=true- Funnel cloning operationsQM_FUNNELS_BACKUP_CLEANUP=true- Backup file cleanupQM_FUNNELS_BUILD_THUMBNAILS=true- Thumbnail generation
Source Location: queue-manager/crons/funnels/
🗄️ Collections Used
funnel
- Operations: Create/Read/Update
- Model:
shared/models/funnel.js - Usage: Funnel configurations
funnel-page
- Operations: Create/Read
- Model:
shared/models/funnel-page.js - Usage: Funnel page content
funnel-backup
- Operations: Read/Delete
- Model:
shared/models/funnel-backup.js - Usage: Funnel backup records
🔧 Jobs in This Module
Funnel Cloning
Key Features:
- Template Cloning: Clone from funnel templates
- Asset Duplication: Copy images, videos, assets
- Page Replication: Duplicate all funnel pages
- Integration Copy: Clone integrations (email, CRM)
- Customization: Apply customer branding
Cloning Process:
- Query pending clone requests
- Fetch source funnel configuration
- Duplicate pages and content
- Copy assets to new location
- Update references and URLs
- Apply customizations
- Publish cloned funnel
Backup Cleanup
Key Features:
- Automated Cleanup: Daily cleanup of old backups
- Retention Policy: Keep last N backups per funnel
- Storage Optimization: Frees S3 storage
- Audit Logging: Tracks deleted backups
Cleanup Policy:
- Default retention: 30 days
- Keep minimum: 5 most recent backups
- Delete only completed funnels
- Preserve flagged backups
Build Thumbnails
Key Features:
- Funnel Previews: Generate funnel page previews
- Multiple Viewports: Desktop, tablet, mobile
- S3 Storage: Cloud-hosted thumbnails
- Update Triggers: Regenerate on page changes
Module Status: Active
Execution Pattern: On-demand + Daily cleanup
Last Updated: 2025-10-10