We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b08a6dd commit 8117a45Copy full SHA for 8117a45
custom_model_runner/datarobot_drum/drum/entry_point.py
@@ -1,11 +1,14 @@
1
from datarobot_drum.drum.gunicorn.run_gunicorn import main_gunicorn
2
from datarobot_drum.drum.main import main
3
from datarobot_drum import RuntimeParameters
4
+from datarobot_drum.drum.utils.setup import setup_options
5
6
7
def run_drum_server():
8
+ options = setup_options()
9
if (
- RuntimeParameters.has("DRUM_SERVER_TYPE")
10
+ options.subparser_name == "server"
11
+ and RuntimeParameters.has("DRUM_SERVER_TYPE")
12
and str(RuntimeParameters.get("DRUM_SERVER_TYPE")).lower() == "gunicorn"
13
):
14
main_gunicorn()
0 commit comments