gateway: refresh EUR->USD prices at boot from the ECB feed (fail-open)

eur_prices.json is the EUR source of truth; fx_sync.py converts at the ECB daily
rate before config validation and rewrites only the model_info cost fields. If the
feed is unreachable the config is left untouched and the boot continues.
This commit is contained in:
inference-admin committed 2026-11-18 17:57:09 +00:00
1 parent fe48ca8e38
commit 140b443980
4 files changed
+110

No files matched your search

+2
View File
@@ -22,6 +22,8 @@ COPY config.yaml /app/data/config.yaml
# A second copy inside the image: start.sh syncs it over the persistent
# /app/data volume at boot, so config changes in the repo actually deploy.
COPY config.yaml /app/code/config.yaml
COPY fx_sync.py /app/code/fx_sync.py
COPY eur_prices.json /app/code/eur_prices.json
# Fail-closed config validator (canonical copy lives in ops-docs/scripts/;
# this byte-identical twin ships with the image and is called from start.sh