File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
custom_model_runner/datarobot_drum/drum Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 11from datarobot_drum .drum .gunicorn .run_gunicorn import main_gunicorn
22from datarobot_drum .drum .main import main
3- import sys
43from datarobot_drum import RuntimeParameters
4+ from datarobot_drum .drum .utils .setup import setup_options
55
66
77def run_drum_server ():
8- cmd_args = sys .argv
9- is_server = False
10- if len (cmd_args ) > 1 and cmd_args [1 ] == "server" :
11- is_server = True
12-
8+ options = setup_options ()
139 if (
14- RuntimeParameters .has ("DRUM_SERVER_TYPE" )
10+ options .subparser_name == "server"
11+ and RuntimeParameters .has ("DRUM_SERVER_TYPE" )
1512 and str (RuntimeParameters .get ("DRUM_SERVER_TYPE" )).lower () == "gunicorn"
16- and is_server
1713 ):
1814 main_gunicorn ()
1915 else :
You can’t perform that action at this time.
0 commit comments