diff --git a/Makefile b/Makefile index 5c205c98..b9575053 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,7 @@ init-prod: @echo "✨ Platform is ready for production OR development" # First-time installation - Complete setup with configuration validation -install: +platform-install: @echo "🚀 WIZAMART PLATFORM INSTALLATION" @echo "==================================" $(PYTHON) scripts/install.py diff --git a/app/core/celery_config.py b/app/core/celery_config.py index 6c692738..05054084 100644 --- a/app/core/celery_config.py +++ b/app/core/celery_config.py @@ -43,6 +43,8 @@ celery_app.conf.update( # Timezone timezone="Europe/Luxembourg", enable_utc=True, + # Broker connection + broker_connection_retry_on_startup=True, # Retry connection on startup (Celery 6.0+) # Task behavior task_track_started=True, task_time_limit=30 * 60, # 30 minutes hard limit diff --git a/scripts/install.py b/scripts/install.py index 58e1b2a2..5abceb81 100755 --- a/scripts/install.py +++ b/scripts/install.py @@ -11,7 +11,7 @@ This script handles first-time installation of the Wizamart platform: 6. Provides a configuration status report Usage: - make install + make platform-install # or directly: python scripts/install.py @@ -572,7 +572,7 @@ def main(): if warning_count > 0 or missing_count > 0: print(" 2. Update .env with production values") - print(" 3. Run 'make install' again to verify") + print(" 3. Run 'make platform-install' again to verify") else: print(" 2. Start the application: make dev")