Skip to content

Commit bd11aea

Browse files
committed
Set simulation queue from environment variable
1 parent dec2ca6 commit bd11aea

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/epa/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,11 @@
208208
else (dict())
209209
)
210210

211+
# Server queue which will process the simulation, openplan for prod mvs version and "" (blank) for dev mvs version
212+
MVS_API_QUEUE = env("MVS_API_QUEUE", default="openplan")
213+
211214
MVS_API_HOST = env("MVS_API_HOST", default="https://mvs-eland.rl-institut.de")
212-
MVS_POST_URL = f"{MVS_API_HOST}/sendjson/"
215+
MVS_POST_URL = f"{MVS_API_HOST}/sendjson/{MVS_API_QUEUE}"
213216
MVS_GET_URL = f"{MVS_API_HOST}/check/"
214217
MVS_LP_FILE_URL = f"{MVS_API_HOST}/get_lp_file/"
215218
MVS_SA_POST_URL = f"{MVS_API_HOST}/sendjson/openplan/sensitivity-analysis"

0 commit comments

Comments
 (0)