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 <noreply@anthropic.com>
This commit is contained in:
2026-01-11 18:22:56 +01:00
parent 3614d448e4
commit 63fd891f36
3 changed files with 5 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ init-prod:
@echo "✨ Platform is ready for production OR development" @echo "✨ Platform is ready for production OR development"
# First-time installation - Complete setup with configuration validation # First-time installation - Complete setup with configuration validation
install: platform-install:
@echo "🚀 WIZAMART PLATFORM INSTALLATION" @echo "🚀 WIZAMART PLATFORM INSTALLATION"
@echo "==================================" @echo "=================================="
$(PYTHON) scripts/install.py $(PYTHON) scripts/install.py

View File

@@ -43,6 +43,8 @@ celery_app.conf.update(
# Timezone # Timezone
timezone="Europe/Luxembourg", timezone="Europe/Luxembourg",
enable_utc=True, enable_utc=True,
# Broker connection
broker_connection_retry_on_startup=True, # Retry connection on startup (Celery 6.0+)
# Task behavior # Task behavior
task_track_started=True, task_track_started=True,
task_time_limit=30 * 60, # 30 minutes hard limit task_time_limit=30 * 60, # 30 minutes hard limit

View File

@@ -11,7 +11,7 @@ This script handles first-time installation of the Wizamart platform:
6. Provides a configuration status report 6. Provides a configuration status report
Usage: Usage:
make install make platform-install
# or directly: # or directly:
python scripts/install.py python scripts/install.py
@@ -572,7 +572,7 @@ def main():
if warning_count > 0 or missing_count > 0: if warning_count > 0 or missing_count > 0:
print(" 2. Update .env with production values") 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: else:
print(" 2. Start the application: make dev") print(" 2. Start the application: make dev")