-
Notifications
You must be signed in to change notification settings - Fork 88
Gavrenkov/gunicorn gevent runtime #1644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…gevent_runtime # Conflicts: # custom_model_runner/datarobot_drum/drum/root_predictors/prediction_server.py
custom_model_runner/requirements.txt
Outdated
@@ -3,6 +3,8 @@ argcomplete | |||
trafaret>=2.0.0 | |||
docker>=4.2.2 | |||
flask | |||
gevent>=22.10.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We try to avoid pinning versions here, instead we pin them in the environment
) | ||
if server_type == "gunicorn": | ||
logger.info("Starting gunicorn server") | ||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably this can be removed as we require gunicorn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe import can be even moved to the beginning of the file
"DRUM_GUNICORN_WORKER_CLASS" | ||
): | ||
if ( | ||
str(RuntimeParameters.has("DRUM_SERVER_TYPE")).lower() == "gunicorn" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe define gunicorn
, gevent
as constants? THey are reused in several places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks cool.
Some notes.
We should add tests
This repository is public. Do not put here any private DataRobot or customer's data: code, datasets, model artifacts, .etc.
Summary
Rationale