Migrates marketplace module to self-contained structure: - Create app/modules/marketplace/services/ re-exporting from existing locations - Create app/modules/marketplace/models/ with marketplace & letzshop models - Create app/modules/marketplace/schemas/ with product & import schemas - Create app/modules/marketplace/tasks/ with 5 Celery tasks: - process_marketplace_import - CSV product import - process_historical_import - Letzshop order import - sync_vendor_directory - Scheduled daily vendor sync - export_vendor_products_to_folder - Multi-language export - export_marketplace_products - Admin export - Create app/modules/marketplace/exceptions.py - Update definition.py with is_self_contained=True and scheduled_tasks Celery task migration: - process_marketplace_import, process_historical_import -> import_tasks.py - sync_vendor_directory -> sync_tasks.py (scheduled daily at 02:00) - export_vendor_products_to_folder, export_marketplace_products -> export_tasks.py Backward compatibility: - Legacy task files now re-export from new locations - Remove marketplace/letzshop/export from LEGACY_TASK_MODULES Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
742 B
Python
25 lines
742 B
Python
# app/tasks/celery_tasks/export.py
|
|
"""
|
|
Legacy export tasks.
|
|
|
|
MIGRATED: All tasks have been migrated to app.modules.marketplace.tasks.
|
|
|
|
New locations:
|
|
- export_vendor_products_to_folder -> app.modules.marketplace.tasks.export_tasks
|
|
- export_marketplace_products -> app.modules.marketplace.tasks.export_tasks
|
|
|
|
Import from the new location:
|
|
from app.modules.marketplace.tasks import (
|
|
export_vendor_products_to_folder,
|
|
export_marketplace_products,
|
|
)
|
|
"""
|
|
|
|
# Re-export from new location for backward compatibility
|
|
from app.modules.marketplace.tasks.export_tasks import (
|
|
export_vendor_products_to_folder,
|
|
export_marketplace_products,
|
|
)
|
|
|
|
__all__ = ["export_vendor_products_to_folder", "export_marketplace_products"]
|