Skip to content

support db pool #675

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

Merged
merged 1 commit into from
Nov 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/docker-images/RestfulAPI/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ COPY ClusterManager/requirements.txt /
RUN rm -rf /usr/lib/python2.7/dist-packages/yaml
RUN rm -rf /usr/lib/python2.7/dist-packages/PyYAML-*
RUN pip install -r /requirements.txt
RUN pip install MySQL-python
RUN pip install DBUtils

ADD Jobs_Templete /DLWorkspace/src/Jobs_Templete
ADD utils /DLWorkspace/src/utils
Expand Down
4 changes: 4 additions & 0 deletions src/utils/DataHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

if "datasource" in config and config["datasource"] == "MySQL":
from MySQLDataHandler import DataHandler
elif "datasource" in config and config["datasource"] == "MySQLPool":
from MySQLPoolDataHandler import DataHandler
elif "datasource" in config and config["datasource"] == "MySQLDBUtilsPool":
from MySQLDBUtilsPoolDataHandler import DataHandler
else:
from SQLDataHandler import DataHandler

Expand Down
Loading