Commit Graph

13 Commits

Author SHA1 Message Date
mprahl
af9505b0e1 Rearrange the imports to meet the style guide
This also includes `from __future__ import absolute_import`
in every file so that the imports are consistent in Python 2 and 3.
The Python 2 tests fail without this.
2020-01-16 14:39:46 -05:00
mprahl
38b7a3ef2a Move scm.py to common/scm.py 2020-01-16 14:39:46 -05:00
mprahl
fce4d05c0c Move logger.py to common/logger.py 2020-01-16 14:39:46 -05:00
mprahl
63baaf9213 Move models.py to common/models.py and views.py to web/views.py 2020-01-16 14:39:46 -05:00
mprahl
5f27e4359f Move errors.py to common/errors.py 2020-01-16 14:39:46 -05:00
mprahl
3091d6cfda Move monitor.py to common/monitor.py 2020-01-16 14:39:46 -05:00
mprahl
c2a3b059e9 Move messaging.py to common/messaging.py 2020-01-16 14:39:46 -05:00
mprahl
46dcb2c236 Move db_session.py to scheduler/db_session.py 2020-01-16 14:39:46 -05:00
mprahl
e0fa2371eb Move config.py to common/config.py 2020-01-16 14:39:46 -05:00
mprahl
ee3ca47c69 Split utils/submit.py
This moves the code used by the backend and API to common/submit.py,
the code used just by the API to web/submit.py, and the code used
just by the backend to scheduler/submit.py.
2020-01-16 14:39:46 -05:00
mprahl
78d5a9e482 Split utils/mse.py
This moves the code used by the backend and API to common/resolve.py
and moves the code used just by the API to web/mse.py.
2020-01-16 14:39:46 -05:00
mprahl
5e401bd598 Split utils/general.py
This puts backend specific code in either the builder or scheduler
subpackage. This puts API specific code in the new web subpackage.
Lastly, any code shared between the API and backend is placed in the
common subpackage.
2020-01-16 14:39:46 -05:00
mprahl
4340dea1e5 Move get_session and retry to separate modules to reduce circular imports 2020-01-16 14:39:45 -05:00