Skip to content

Commit 4fe44ec

Browse files
authored
bump DRUM and fix run gunicorn only in server mode (#1665)
1 parent cfb6053 commit 4fe44ec

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

custom_model_runner/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
#### [1.17.2] - 2025-09-22
9+
##### Fixed
10+
- Fixed MLOps agent data offloading to only occur when deployment has feature drift or prediction data collection tracing settings enabled. Settings are checked once per minute to prevent unnecessary error logging.
11+
- Fixed gunicorn to run only in server mode.
12+
813
#### [1.17.1] - 2025-09-12
914
##### Fixed
1015
- Otel OpenAI async monkey patching for gunicorn

custom_model_runner/datarobot_drum/drum/description.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
This is proprietary source code of DataRobot, Inc. and its affiliates.
55
Released under the terms of DataRobot Tool and Utility Agreement.
66
"""
7-
version = "1.17.1"
7+
version = "1.17.2"
88
__version__ = version
99
project_name = "datarobot-drum"

custom_model_runner/datarobot_drum/drum/entry_point.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
from datarobot_drum.drum.gunicorn.run_gunicorn import main_gunicorn
22
from datarobot_drum.drum.main import main
3+
import sys
34
from datarobot_drum import RuntimeParameters
45

56

67
def 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+
713
if (
814
RuntimeParameters.has("DRUM_SERVER_TYPE")
915
and str(RuntimeParameters.get("DRUM_SERVER_TYPE")).lower() == "gunicorn"
16+
and is_server
1017
):
1118
main_gunicorn()
1219
else:

0 commit comments

Comments
 (0)