From 63fd891f36a89ea869dfc58db82fd90107104107 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sun, 11 Jan 2026 18:22:56 +0100 Subject: [PATCH] fix: resolve Makefile duplicate install target and Celery deprecation warning - Rename second 'install' target to 'platform-install' to avoid conflict - Add broker_connection_retry_on_startup=True for Celery 6.0 compatibility - Update install.py references to use 'make platform-install' Co-Authored-By: Claude Opus 4.5 --- Makefile | 2 +- app/core/celery_config.py | 2 ++ scripts/install.py | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) 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")