File tree Expand file tree Collapse file tree 9 files changed +20
-2
lines changed
custom_model_runner/datarobot_drum/drum
public_dropin_environments Expand file tree Collapse file tree 9 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 33from datarobot_drum import RuntimeParameters
44from datarobot_drum .drum .utils .setup import setup_options
55
6+ from custom_model_runner .datarobot_drum .drum .enum import ArgumentsOptions
7+
68
79def run_drum_server ():
810 options = setup_options ()
911 if (
10- options .subparser_name == "server"
12+ options .subparser_name == ArgumentsOptions . SERVER
1113 and RuntimeParameters .has ("DRUM_SERVER_TYPE" )
1214 and str (RuntimeParameters .get ("DRUM_SERVER_TYPE" )).lower () == "gunicorn"
1315 ):
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ ENV ADDRESS=0.0.0.0:8080
6969ENV WITH_ERROR_SERVER=0 \
7070 PYTHONUNBUFFERED=1
7171
72+ # Gunicorn configuration
73+ ENV MLOPS_RUNTIME_PARAM_DRUM_SERVER_TYPE='{"type": "string", "payload": "gunicorn"}'
7274
7375COPY ./*.sh ${CODE_DIR}/
7476WORKDIR ${CODE_DIR}
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ ENV ADDRESS=0.0.0.0:8080
5959ENV WITH_ERROR_SERVER=0 \
6060 PYTHONUNBUFFERED=1
6161
62+ # Gunicorn configuration
63+ ENV MLOPS_RUNTIME_PARAM_DRUM_SERVER_TYPE='{"type": "string", "payload": "gunicorn"}'
6264
6365COPY ./*.sh ${CODE_DIR}/
6466WORKDIR ${CODE_DIR}
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ ENV ADDRESS=0.0.0.0:8080
5959ENV WITH_ERROR_SERVER=0 \
6060 PYTHONUNBUFFERED=1
6161
62+ # Gunicorn configuration
63+ ENV MLOPS_RUNTIME_PARAM_DRUM_SERVER_TYPE='{"type": "string", "payload": "gunicorn"}'
64+
6265COPY ./*.sh ${CODE_DIR}/
6366WORKDIR ${CODE_DIR}
6467
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ ENV ADDRESS=0.0.0.0:8080
5959ENV WITH_ERROR_SERVER=0 \
6060 PYTHONUNBUFFERED=1
6161
62+ # Gunicorn configuration
63+ ENV MLOPS_RUNTIME_PARAM_DRUM_SERVER_TYPE='{"type": "string", "payload": "gunicorn"}'
6264
6365COPY ./*.sh ${CODE_DIR}/
6466WORKDIR ${CODE_DIR}
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ ENV ADDRESS=0.0.0.0:8080
5959ENV WITH_ERROR_SERVER=0 \
6060 PYTHONUNBUFFERED=1
6161
62+ # Gunicorn configuration
63+ ENV MLOPS_RUNTIME_PARAM_DRUM_SERVER_TYPE='{"type": "string", "payload": "gunicorn"}'
6264
6365COPY ./*.sh ${CODE_DIR}/
6466WORKDIR ${CODE_DIR}
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ ENV WITH_ERROR_SERVER=0 \
6464# Gunicorn configuration
6565ENV MLOPS_RUNTIME_PARAM_DRUM_SERVER_TYPE='{"type": "string", "payload": "gunicorn"}'
6666
67-
6867COPY ./*.sh ${CODE_DIR}/
6968WORKDIR ${CODE_DIR}
7069
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ ENV WITH_ERROR_SERVER=0 \
6666# Maybe the same would apply to gunicorn, when we test.
6767# ENV OMP_NUM_THREADS=1
6868
69+ # Gunicorn configuration
70+ ENV MLOPS_RUNTIME_PARAM_DRUM_SERVER_TYPE='{"type": "string", "payload": "gunicorn"}'
71+
6972COPY ./*.sh ${CODE_DIR}/
7073WORKDIR ${CODE_DIR}
7174
Original file line number Diff line number Diff line change @@ -158,6 +158,9 @@ ENV ADDRESS=0.0.0.0:8080
158158ENV WITH_ERROR_SERVER=0 \
159159 PYTHONUNBUFFERED=1
160160
161+ # Gunicorn configuration
162+ ENV MLOPS_RUNTIME_PARAM_DRUM_SERVER_TYPE='{"type": "string", "payload": "gunicorn"}'
163+
161164COPY ./*.sh ${CODE_DIR}/
162165WORKDIR ${CODE_DIR}
163166
You can’t perform that action at this time.
0 commit comments