docs: update infrastructure docs to reflect Celery/Redis implementation
- Update "Current State" table: Celery, Beat, Flower, Redis now production-ready - Update "What We Need to Add": removed Celery/Redis, added S3 and Sentry as priorities - Add Celery commands section to development environment - Update services table with Redis, Celery, Flower ports - Update Docker Compose services section with all Celery services - Update Migration Path: Phase 1 & 2 marked as COMPLETE - Update Next Steps: focus on S3, Sentry, CloudFlare - Fix Celery app path in systemd services (app.core.celery_config) - Add Flower systemd service configuration - Add queue flags to Celery worker command Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -81,7 +81,7 @@ StandardError=journal
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
### Celery Worker (when implemented)
|
||||
### Celery Worker
|
||||
|
||||
```bash
|
||||
sudo nano /etc/systemd/system/wizamart-celery.service
|
||||
@@ -98,7 +98,7 @@ Group=wizamart
|
||||
WorkingDirectory=/home/wizamart/app
|
||||
Environment="PATH=/home/wizamart/app/.venv/bin"
|
||||
EnvironmentFile=/home/wizamart/app/.env
|
||||
ExecStart=/home/wizamart/app/.venv/bin/celery -A app.celery worker --loglevel=info --concurrency=4
|
||||
ExecStart=/home/wizamart/app/.venv/bin/celery -A app.core.celery_config worker --loglevel=info -Q default,long_running,scheduled --concurrency=4
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
StandardOutput=journal
|
||||
@@ -125,7 +125,32 @@ Group=wizamart
|
||||
WorkingDirectory=/home/wizamart/app
|
||||
Environment="PATH=/home/wizamart/app/.venv/bin"
|
||||
EnvironmentFile=/home/wizamart/app/.env
|
||||
ExecStart=/home/wizamart/app/.venv/bin/celery -A app.celery beat --loglevel=info
|
||||
ExecStart=/home/wizamart/app/.venv/bin/celery -A app.core.celery_config beat --loglevel=info
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
### Flower (Task Monitoring)
|
||||
|
||||
```bash
|
||||
sudo nano /etc/systemd/system/wizamart-flower.service
|
||||
```
|
||||
|
||||
```ini
|
||||
[Unit]
|
||||
Description=Wizamart Flower Task Monitor
|
||||
After=network.target redis.service
|
||||
|
||||
[Service]
|
||||
User=wizamart
|
||||
Group=wizamart
|
||||
WorkingDirectory=/home/wizamart/app
|
||||
Environment="PATH=/home/wizamart/app/.venv/bin"
|
||||
EnvironmentFile=/home/wizamart/app/.env
|
||||
ExecStart=/home/wizamart/app/.venv/bin/celery -A app.core.celery_config flower --port=5555
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
@@ -137,8 +162,8 @@ WantedBy=multi-user.target
|
||||
|
||||
```bash
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable wizamart wizamart-celery wizamart-celery-beat
|
||||
sudo systemctl start wizamart wizamart-celery wizamart-celery-beat
|
||||
sudo systemctl enable wizamart wizamart-celery wizamart-celery-beat wizamart-flower
|
||||
sudo systemctl start wizamart wizamart-celery wizamart-celery-beat wizamart-flower
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user