feat(mcp): queue long-running calculations
This commit is contained in:
@@ -21,6 +21,26 @@ services:
|
||||
- timescaledb
|
||||
- postgis
|
||||
|
||||
# Enable after provisioning calculation storage and explicit project scopes.
|
||||
calculation-worker:
|
||||
profiles: [calculations]
|
||||
image: ${TJWATER_SERVER_IMAGE:-tjwater-server:local}
|
||||
init: true
|
||||
restart: on-failure
|
||||
command: ["python", "scripts/run_calculation_worker.py"]
|
||||
env_file:
|
||||
- ../../.env
|
||||
environment:
|
||||
- PYTHONPATH=/app
|
||||
volumes:
|
||||
- ../../app:/app/app
|
||||
- ../../resources:/app/resources
|
||||
- calculation-state:/app/temp/calculation-jobs
|
||||
stop_grace_period: 30s
|
||||
depends_on:
|
||||
- timescaledb
|
||||
- postgis
|
||||
|
||||
# ==========================================
|
||||
# Infrastructure Services
|
||||
# ==========================================
|
||||
@@ -127,6 +147,9 @@ services:
|
||||
volumes:
|
||||
- ./mapservice/geoserver_data:/opt/geoserver_data
|
||||
|
||||
volumes:
|
||||
calculation-state:
|
||||
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user