实测 heicode-rd(OSSCluster,2 分片):默认 keys() 只命中单节点, 漏掉其它分片上的 key → agent_registry/task_queue 枚举不全。 cluster 模式下改用 target_nodes=PRIMARIES,redis-py 合并各节点结果。 附带修 agent_swarm#44 Bug1:Dockerfile.orchestrator 漏 COPY benchmark/ (orchestrator/quality.py 启动即 import benchmark.fixtures/metrics)→ 原镜像 CrashLoopBackOff。新增 .dockerignore 控制构建上下文。 影响范围:仅 agent_swarm orchestrator(连接层 + 构建物料); 不改契约/计费/审计/密钥落地。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
21 lines
561 B
Docker
21 lines
561 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY orchestrator/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy orchestrator code
|
|
COPY orchestrator/ ./orchestrator/
|
|
|
|
# orchestrator/quality.py imports benchmark.fixtures / benchmark.metrics at startup,
|
|
# so the package must be present in the image (agent_swarm#44). stdlib-only — no extra pip.
|
|
COPY benchmark/ ./benchmark/
|
|
|
|
# Expose port
|
|
EXPOSE 8000
|
|
|
|
# Run orchestrator
|
|
CMD ["python", "-m", "uvicorn", "orchestrator.main:app", "--host", "0.0.0.0", "--port", "8000"]
|