* 去掉MCP框架,重构 * 去掉MCP框架,重构 * 去掉MCP框架,重构 * 去掉MCP框架,重构 * 去掉MCP框架,重构 * 去掉MCP框架,重构 * 去掉MCP框架,重构 * feat(celery): add comprehensive logging to worker and write task - Initialize logging system in Celery worker entry point with LoggingConfig - Add logger instance and startup message to celery_worker.py - Reorganize imports in tasks.py for better readability and consistency - Add detailed logging to write_message_task for debugging and monitoring - Log task start with group_id, config_id, and storage_type parameters - Log service execution and completion status with results - Add exception handling with error logging and stack trace capture - Log task completion time and Celery task ID for performance tracking - Improves observability and troubleshooting of async task execution * 去掉MCP框架,重构 * 去掉MCP框架,重构 --------- Co-authored-by: Ke Sun <kesun5@illinois.edu>
39 lines
894 B
YAML
39 lines
894 B
YAML
services:
|
||
# FastAPI application
|
||
api:
|
||
image: redbear-mem-open:latest
|
||
container_name: api
|
||
ports:
|
||
- "8002:8000"
|
||
env_file:
|
||
- .env
|
||
environment:
|
||
- SERVER_IP=0.0.0.0
|
||
# 如果代码里必须要 MCP_SERVER_URL,可以先注释或指向占位
|
||
# - MCP_SERVER_URL=
|
||
volumes:
|
||
- ./files:/files
|
||
- /etc/localtime:/etc/localtime:ro
|
||
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --log-level debug
|
||
restart: unless-stopped
|
||
networks:
|
||
- default
|
||
- celery
|
||
|
||
# Celery worker
|
||
worker:
|
||
image: redbear-mem-open:latest
|
||
container_name: worker
|
||
env_file:
|
||
- .env
|
||
volumes:
|
||
- ./files:/files
|
||
- /etc/localtime:/etc/localtime:ro
|
||
command: celery -A app.celery_worker.celery_app worker --loglevel=info
|
||
restart: unless-stopped
|
||
networks:
|
||
- celery
|
||
|
||
networks:
|
||
celery:
|