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:
2
Makefile
2
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user