Skip to content

Conversation

s-gavrenkov
Copy link
Contributor

This repository is public. Do not put here any private DataRobot or customer's data: code, datasets, model artifacts, .etc.

Summary

Rationale

@@ -3,6 +3,8 @@ argcomplete
trafaret>=2.0.0
docker>=4.2.2
flask
gevent>=22.10.2
Copy link
Collaborator

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:
Copy link
Collaborator

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

Copy link
Collaborator

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"
Copy link
Collaborator

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

Copy link
Collaborator

@yakov-g yakov-g left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants